summaryrefslogtreecommitdiff
path: root/gtk/gtkentrycompletion.c
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-12-13 15:58:07 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2010-12-13 15:58:07 +0900
commit623abdedf6c6f4ce7dd7eb3594644b6032c295f5 (patch)
tree7175f6c0a29cdfbb05a1cfb3c3fca36fe31c13e1 /gtk/gtkentrycompletion.c
parent96d636a78007c7ec552ec99b206e2a80b1b218e3 (diff)
downloadgtk+-623abdedf6c6f4ce7dd7eb3594644b6032c295f5.tar.gz
Added gtk_entry_completion_new_with_area()
Diffstat (limited to 'gtk/gtkentrycompletion.c')
-rw-r--r--gtk/gtkentrycompletion.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index 36247dde0f..0808c1059f 100644
--- a/gtk/gtkentrycompletion.c
+++ b/gtk/gtkentrycompletion.c
@@ -996,6 +996,28 @@ gtk_entry_completion_new (void)
}
/**
+ * gtk_entry_completion_new_with_area:
+ * @area: the #GtkCellArea used to layout cells
+ *
+ * Creates a new #GtkEntryCompletion object using the
+ * specified @area to layout cells in the underlying
+ * #GtkTreeViewColumn for the drop-down menu.
+ *
+ * Return value: A newly created #GtkEntryCompletion object.
+ *
+ * Since: 3.0
+ */
+GtkEntryCompletion *
+gtk_entry_completion_new_with_area (GtkCellArea *area)
+{
+ GtkEntryCompletion *completion;
+
+ completion = g_object_new (GTK_TYPE_ENTRY_COMPLETION, "cell-area", area, NULL);
+
+ return completion;
+}
+
+/**
* gtk_entry_completion_get_entry:
* @completion: A #GtkEntryCompletion.
*