summaryrefslogtreecommitdiff
path: root/gtk/gtkentrycompletion.h
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2007-04-27 16:50:04 +0000
committerXan Lopez <xan@src.gnome.org>2007-04-27 16:50:04 +0000
commitf478d9f0f61d46102507a034f63919a5c9cb0e04 (patch)
treeb5937070036152184094e94d4bfc963d04468f28 /gtk/gtkentrycompletion.h
parent533d3fcc76b39fc4c71afae9c2a31e8147851b8c (diff)
downloadgtk+-f478d9f0f61d46102507a034f63919a5c9cb0e04.tar.gz
Support inline-selection in entries (#318459)
Support inline-selection in entries (#318459) * gtk/gtkentry.c: * gtk/gtkentrycompletion.c: * gtk/gtkentrycompletion.h: * gtk/gtkentryprivate.h: When enabled cursor-match is emited when the cursor is on a possible completion on the list. The default implementation will replace the contents on the entry with the contents of the text column in the completion model. Review and improvements by Matthias Clasen. svn path=/trunk/; revision=17660
Diffstat (limited to 'gtk/gtkentrycompletion.h')
-rw-r--r--gtk/gtkentrycompletion.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk/gtkentrycompletion.h b/gtk/gtkentrycompletion.h
index 01a40fd957..26285d2ac6 100644
--- a/gtk/gtkentrycompletion.h
+++ b/gtk/gtkentrycompletion.h
@@ -65,11 +65,13 @@ struct _GtkEntryCompletionClass
gint index_);
gboolean (* insert_prefix) (GtkEntryCompletion *completion,
const gchar *prefix);
+ gboolean (* cursor_on_match) (GtkEntryCompletion *completion,
+ GtkTreeModel *model,
+ GtkTreeIter *iter);
/* Padding for future expansion */
void (*_gtk_reserved0) (void);
void (*_gtk_reserved1) (void);
- void (*_gtk_reserved2) (void);
};
/* core */
@@ -104,6 +106,9 @@ void gtk_entry_completion_delete_action (GtkEntryComplet
void gtk_entry_completion_set_inline_completion (GtkEntryCompletion *completion,
gboolean inline_completion);
gboolean gtk_entry_completion_get_inline_completion (GtkEntryCompletion *completion);
+void gtk_entry_completion_set_inline_selection (GtkEntryCompletion *completion,
+ gboolean inline_selection);
+gboolean gtk_entry_completion_get_inline_selection (GtkEntryCompletion *completion);
void gtk_entry_completion_set_popup_completion (GtkEntryCompletion *completion,
gboolean popup_completion);
gboolean gtk_entry_completion_get_popup_completion (GtkEntryCompletion *completion);
@@ -114,7 +119,8 @@ void gtk_entry_completion_set_popup_single_match (GtkEntryComplet
gboolean popup_single_match);
gboolean gtk_entry_completion_get_popup_single_match (GtkEntryCompletion *completion);
-
+void gtk_entry_completion_insert_completion_text (GtkEntryCompletion *completion,
+ const gchar *text);
/* convenience */
void gtk_entry_completion_set_text_column (GtkEntryCompletion *completion,
gint column);