mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-23 20:30:15 +00:00
Added new constructors gtk_combo_box_new_with_area and gtk_combo_box_new_with_area_and_entry.
This commit is contained in:
parent
b3ff60db71
commit
57857f13df
@ -827,6 +827,8 @@ gtk_combo_box_new
|
||||
gtk_combo_box_new_with_entry
|
||||
gtk_combo_box_new_with_model
|
||||
gtk_combo_box_new_with_model_and_entry
|
||||
gtk_combo_box_new_with_area
|
||||
gtk_combo_box_new_with_area_and_entry
|
||||
gtk_combo_box_get_wrap_width
|
||||
gtk_combo_box_set_wrap_width
|
||||
gtk_combo_box_get_row_span_column
|
||||
|
@ -626,6 +626,8 @@ gtk_combo_box_get_title
|
||||
gtk_combo_box_get_type G_GNUC_CONST
|
||||
gtk_combo_box_get_wrap_width
|
||||
gtk_combo_box_new
|
||||
gtk_combo_box_new_with_area
|
||||
gtk_combo_box_new_with_area_and_entry
|
||||
gtk_combo_box_new_with_entry
|
||||
gtk_combo_box_new_with_model
|
||||
gtk_combo_box_new_with_model_and_entry
|
||||
|
@ -3780,6 +3780,40 @@ gtk_combo_box_new (void)
|
||||
return g_object_new (GTK_TYPE_COMBO_BOX, NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_combo_box_new_with_area:
|
||||
* @area: the #GtkCellArea to use to layout cell renderers
|
||||
*
|
||||
* Creates a new empty #GtkComboBox using @area to layout cells.
|
||||
*
|
||||
* Return value: A new #GtkComboBox.
|
||||
*/
|
||||
GtkWidget *
|
||||
gtk_combo_box_new_with_area (GtkCellArea *area)
|
||||
{
|
||||
return g_object_new (GTK_TYPE_COMBO_BOX, "cell-area", area, NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_combo_box_new_with_area_and_entry:
|
||||
* @area: the #GtkCellArea to use to layout cell renderers
|
||||
*
|
||||
* Creates a new empty #GtkComboBox with an entry.
|
||||
*
|
||||
* The new combo box will use @area to layout cells.
|
||||
*
|
||||
* Return value: A new #GtkComboBox.
|
||||
*/
|
||||
GtkWidget *
|
||||
gtk_combo_box_new_with_area_and_entry (GtkCellArea *area)
|
||||
{
|
||||
return g_object_new (GTK_TYPE_COMBO_BOX,
|
||||
"has-entry", TRUE,
|
||||
"cell-area", area,
|
||||
NULL);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* gtk_combo_box_new_with_entry:
|
||||
*
|
||||
|
@ -67,6 +67,8 @@ struct _GtkComboBoxClass
|
||||
/* construction */
|
||||
GType gtk_combo_box_get_type (void) G_GNUC_CONST;
|
||||
GtkWidget *gtk_combo_box_new (void);
|
||||
GtkWidget *gtk_combo_box_new_with_area (GtkCellArea *area);
|
||||
GtkWidget *gtk_combo_box_new_with_area_and_entry (GtkCellArea *area);
|
||||
GtkWidget *gtk_combo_box_new_with_entry (void);
|
||||
GtkWidget *gtk_combo_box_new_with_model (GtkTreeModel *model);
|
||||
GtkWidget *gtk_combo_box_new_with_model_and_entry (GtkTreeModel *model);
|
||||
|
Loading…
Reference in New Issue
Block a user