[gtk+/treeview-refactor] Added gtk_entry_completion_new_with_area()
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/treeview-refactor] Added gtk_entry_completion_new_with_area()
- Date: Mon, 13 Dec 2010 06:52:36 +0000 (UTC)
commit 623abdedf6c6f4ce7dd7eb3594644b6032c295f5
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Mon Dec 13 15:58:07 2010 +0900
Added gtk_entry_completion_new_with_area()
docs/reference/gtk/gtk3-sections.txt | 1 +
gtk/gtk.symbols | 1 +
gtk/gtkentrycompletion.c | 22 ++++++++++++++++++++++
gtk/gtkentrycompletion.h | 2 ++
4 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/docs/reference/gtk/gtk3-sections.txt b/docs/reference/gtk/gtk3-sections.txt
index dbe4e42..5702bdb 100644
--- a/docs/reference/gtk/gtk3-sections.txt
+++ b/docs/reference/gtk/gtk3-sections.txt
@@ -1119,6 +1119,7 @@ gtk_entry_buffer_get_type
GtkEntryCompletion
GtkEntryCompletionMatchFunc
gtk_entry_completion_new
+gtk_entry_completion_new_with_area
gtk_entry_completion_get_entry
gtk_entry_completion_set_model
gtk_entry_completion_get_model
diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols
index ce41e59..b7c384b 100644
--- a/gtk/gtk.symbols
+++ b/gtk/gtk.symbols
@@ -798,6 +798,7 @@ gtk_entry_completion_insert_action_markup
gtk_entry_completion_insert_action_text
gtk_entry_completion_insert_prefix
gtk_entry_completion_new
+gtk_entry_completion_new_with_area
gtk_entry_completion_set_inline_completion
gtk_entry_completion_set_inline_selection
gtk_entry_completion_set_match_func
diff --git a/gtk/gtkentrycompletion.c b/gtk/gtkentrycompletion.c
index 36247dd..0808c10 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.
*
diff --git a/gtk/gtkentrycompletion.h b/gtk/gtkentrycompletion.h
index f120c3a..a5ba422 100644
--- a/gtk/gtkentrycompletion.h
+++ b/gtk/gtkentrycompletion.h
@@ -26,6 +26,7 @@
#include <gtk/gtktreemodel.h>
#include <gtk/gtkliststore.h>
+#include <gtk/gtkcellarea.h>
#include <gtk/gtktreeviewcolumn.h>
#include <gtk/gtktreemodelfilter.h>
@@ -81,6 +82,7 @@ struct _GtkEntryCompletionClass
/* core */
GType gtk_entry_completion_get_type (void) G_GNUC_CONST;
GtkEntryCompletion *gtk_entry_completion_new (void);
+GtkEntryCompletion *gtk_entry_completion_new_with_area (GtkCellArea *area);
GtkWidget *gtk_entry_completion_get_entry (GtkEntryCompletion *completion);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]