]> Pileus Git - ~andy/gtk/commitdiff
Added new constructors gtk_combo_box_new_with_area and gtk_combo_box_new_with_area_an...
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Mon, 13 Dec 2010 10:34:26 +0000 (19:34 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Tue, 4 Jan 2011 14:37:13 +0000 (23:37 +0900)
docs/reference/gtk/gtk3-sections.txt
gtk/gtk.symbols
gtk/gtkcombobox.c
gtk/gtkcombobox.h

index b4405791f28cb1fb3d4f0e2ae848e7a293a629a5..9b28579f8861af6cbcacd1d8a791d2e7d3d4ac6f 100644 (file)
@@ -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
index ab2bf1838b429c1e44fd3007ecddc1665b69d545..0c5c01d2899061c6bb154749ccc2b4eba42ff754 100644 (file)
@@ -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
index eb8dea45b62b27d2176e8a6be73120ce9dd28cee..84ed7c47f0f006425856705711a659169259ca59 100644 (file)
@@ -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:
  *
index 1c674b9c06d4784253dfbe0345f404b97ed9b70e..30a97694032dcee9eec1b01f4f44bc1c4de808aa 100644 (file)
@@ -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);