diff options
author | Matthias Clasen <maclas@gmx.de> | 2004-05-06 04:06:35 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-05-06 04:06:35 +0000 |
commit | 3d01ab5f5a06838c4e371fe7f4a47647f82a0e83 (patch) | |
tree | ebe2e9dc688a43b77c1c359d871bf7f45d40b626 | |
parent | 56b202f4613d7dfd5c96fd1085d4fa312d2ee092 (diff) | |
download | gtk+-3d01ab5f5a06838c4e371fe7f4a47647f82a0e83.tar.gz |
Add missing getters for readwrite properies. (#135649)
Thu May 6 00:02:21 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcombobox.c (gtk_combo_box_get_wrap_width):
(gtk_combo_box_get_row_span_column):
(gtk_combo_box_get_column_span_column): Add missing getters
for readwrite properies. (#135649)
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 7 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 7 | ||||
-rw-r--r-- | docs/reference/ChangeLog | 4 | ||||
-rw-r--r-- | docs/reference/gtk/gtk-sections.txt | 3 | ||||
-rw-r--r-- | gtk/gtkcombobox.c | 56 | ||||
-rw-r--r-- | gtk/gtkcombobox.h | 3 |
8 files changed, 94 insertions, 0 deletions
@@ -1,3 +1,10 @@ +Thu May 6 00:02:21 2004 Matthias Clasen <maclas@gmx.de> + + * gtk/gtkcombobox.c (gtk_combo_box_get_wrap_width): + (gtk_combo_box_get_row_span_column): + (gtk_combo_box_get_column_span_column): Add missing getters + for readwrite properies. (#135649) + Wed May 5 23:42:42 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcombobox.h: diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 0133b14e35..15ea51f1b8 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,10 @@ +Thu May 6 00:02:21 2004 Matthias Clasen <maclas@gmx.de> + + * gtk/gtkcombobox.c (gtk_combo_box_get_wrap_width): + (gtk_combo_box_get_row_span_column): + (gtk_combo_box_get_column_span_column): Add missing getters + for readwrite properies. (#135649) + Wed May 5 23:42:42 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcombobox.h: diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 0133b14e35..15ea51f1b8 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,10 @@ +Thu May 6 00:02:21 2004 Matthias Clasen <maclas@gmx.de> + + * gtk/gtkcombobox.c (gtk_combo_box_get_wrap_width): + (gtk_combo_box_get_row_span_column): + (gtk_combo_box_get_column_span_column): Add missing getters + for readwrite properies. (#135649) + Wed May 5 23:42:42 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcombobox.h: diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 0133b14e35..15ea51f1b8 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,10 @@ +Thu May 6 00:02:21 2004 Matthias Clasen <maclas@gmx.de> + + * gtk/gtkcombobox.c (gtk_combo_box_get_wrap_width): + (gtk_combo_box_get_row_span_column): + (gtk_combo_box_get_column_span_column): Add missing getters + for readwrite properies. (#135649) + Wed May 5 23:42:42 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkcombobox.h: diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 0c1bf683f2..abfc3d5629 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,7 @@ +Thu May 6 00:04:03 2004 Matthias Clasen <maclas@gmx.de> + + * gtk/gtk-sections.txt: Add missing getters. + Wed May 5 23:46:19 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtk-sections.txt: Add gtk_combo_box_get_active_text(). diff --git a/docs/reference/gtk/gtk-sections.txt b/docs/reference/gtk/gtk-sections.txt index 12bee55c71..1c02125f36 100644 --- a/docs/reference/gtk/gtk-sections.txt +++ b/docs/reference/gtk/gtk-sections.txt @@ -671,8 +671,11 @@ gtk_combo_get_type GtkComboBox gtk_combo_box_new gtk_combo_box_new_with_model +gtk_combo_box_get_wrap_width gtk_combo_box_set_wrap_width +gtk_combo_box_get_row_span_column gtk_combo_box_set_row_span_column +gtk_combo_box_get_column_span_column gtk_combo_box_set_column_span_column gtk_combo_box_get_active gtk_combo_box_set_active diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c index e76a7218aa..b4e3ba9e5e 100644 --- a/gtk/gtkcombobox.c +++ b/gtk/gtkcombobox.c @@ -3024,6 +3024,26 @@ gtk_combo_box_new_with_model (GtkTreeModel *model) } /** + * gtk_combo_box_get_wrap_width: + * @combo_box: A #GtkComboBox. + * + * Returns the wrap width which is used to determine the number + * of columns for the popup menu. If the wrap width is larger than + * 1, the combo box is in table mode. + * + * Returns: the wrap width. + * + * Since: 2.6 + */ +gint +gtk_combo_box_get_wrap_width (GtkComboBox *combo_box) +{ + g_return_val_if_fail (GTK_IS_COMBO_BOX (combo_box), -1); + + return combo_box->priv->wrap_width; +} + +/** * gtk_combo_box_set_wrap_width: * @combo_box: A #GtkComboBox. * @width: Preferred number of columns. @@ -3053,6 +3073,24 @@ gtk_combo_box_set_wrap_width (GtkComboBox *combo_box, } /** + * gtk_combo_box_get_row_span_column: + * @combo_box: A #GtkComboBox. + * + * Returns the column with row span information for @combo_box. + * + * Returns: the row span column. + * + * Since: 2.6 + */ +gint +gtk_combo_box_get_row_span_column (GtkComboBox *combo_box) +{ + g_return_val_if_fail (GTK_IS_COMBO_BOX (combo_box), -1); + + return combo_box->priv->row_column; +} + +/** * gtk_combo_box_set_row_span_column: * @combo_box: A #GtkComboBox. * @row_span: A column in the model passed during construction. @@ -3085,6 +3123,24 @@ gtk_combo_box_set_row_span_column (GtkComboBox *combo_box, } /** + * gtk_combo_box_get_column_span_column: + * @combo_box: A #GtkComboBox. + * + * Returns the column with column span information for @combo_box. + * + * Returns: the column span column. + * + * Since: 2.6 + */ +gint +gtk_combo_box_get_column_span_column (GtkComboBox *combo_box) +{ + g_return_val_if_fail (GTK_IS_COMBO_BOX (combo_box), -1); + + return combo_box->priv->col_column; +} + +/** * gtk_combo_box_set_column_span_column: * @combo_box: A #GtkComboBox. * @column_span: A column in the model passed during construction. diff --git a/gtk/gtkcombobox.h b/gtk/gtkcombobox.h index c444bbec0a..a0b2a5df99 100644 --- a/gtk/gtkcombobox.h +++ b/gtk/gtkcombobox.h @@ -66,10 +66,13 @@ GtkWidget *gtk_combo_box_new (void); GtkWidget *gtk_combo_box_new_with_model (GtkTreeModel *model); /* grids */ +gint gtk_combo_box_get_wrap_width (GtkComboBox *combo_box); void gtk_combo_box_set_wrap_width (GtkComboBox *combo_box, gint width); +gint gtk_combo_box_get_row_span_column (GtkComboBox *combo_box); void gtk_combo_box_set_row_span_column (GtkComboBox *combo_box, gint row_span); +gint gtk_combo_box_get_column_span_column (GtkComboBox *combo_box); void gtk_combo_box_set_column_span_column (GtkComboBox *combo_box, gint column_span); |