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)
This commit is contained in:
Matthias Clasen 2004-05-06 04:06:35 +00:00 committed by Matthias Clasen
parent 56b202f461
commit 3d01ab5f5a
8 changed files with 94 additions and 0 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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().

View File

@ -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

View File

@ -3023,6 +3023,26 @@ gtk_combo_box_new_with_model (GtkTreeModel *model)
return GTK_WIDGET (combo_box);
}
/**
* 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.
@ -3052,6 +3072,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.
@ -3084,6 +3122,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.

View File

@ -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);