Commit 3d01ab5f authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

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)
parent 56b202f4
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:
......
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:
......
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:
......
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:
......
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().
......
......@@ -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
......
......@@ -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.
......
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment