diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-12-13 15:58:07 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-12-13 15:58:07 +0900 |
commit | 623abdedf6c6f4ce7dd7eb3594644b6032c295f5 (patch) | |
tree | 7175f6c0a29cdfbb05a1cfb3c3fca36fe31c13e1 /gtk/gtkentrycompletion.c | |
parent | 96d636a78007c7ec552ec99b206e2a80b1b218e3 (diff) | |
download | gtk+-623abdedf6c6f4ce7dd7eb3594644b6032c295f5.tar.gz |
Added gtk_entry_completion_new_with_area()
Diffstat (limited to 'gtk/gtkentrycompletion.c')
-rw-r--r-- | gtk/gtkentrycompletion.c | 22 |
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. * |