summaryrefslogtreecommitdiff
path: root/gtk/gtkentryprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2004-07-19 18:15:48 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-07-19 18:15:48 +0000
commit5351a4e444a991bcc3022edb007b047493d86dd1 (patch)
treee1ce78d7dd1409d1bb9dfd205ef48d8528e21e83 /gtk/gtkentryprivate.h
parent23b6bd5378571d027dc03c08843449c130d9fbde (diff)
downloadgdk-pixbuf-5351a4e444a991bcc3022edb007b047493d86dd1.tar.gz
Support inline autocompletion in entries (#135953)
2004-07-19 Matthias Clasen <mclasen@redhat.com> Support inline autocompletion in entries (#135953) * gtk/gtkentryprivate.h: * gtk/gtkentrycompletion.h: * gtk/gtkentrycompletion.c (gtk_entry_completion_class_init): Add a new signal ::insert-prefix which can be used to override the default inline-completion behaviour. Add two new boolean properties, :popup_completion and :inline_completion which determine how the possible completions should be presented. (gtk_entry_completion_insert_prefix): New function to request a prefix insertion. * gtk/gtkentry.c: Add the necessary glue for inline completion.
Diffstat (limited to 'gtk/gtkentryprivate.h')
-rw-r--r--gtk/gtkentryprivate.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/gtk/gtkentryprivate.h b/gtk/gtkentryprivate.h
index aed129e02..7fb369b9c 100644
--- a/gtk/gtkentryprivate.h
+++ b/gtk/gtkentryprivate.h
@@ -55,10 +55,14 @@ struct _GtkEntryCompletionPrivate
gulong completion_timeout;
gulong changed_id;
- gulong key_press_id;
- gulong key_release_id;
+ gulong insert_text_id;
- gboolean ignore_enter;
+ guint ignore_enter : 1;
+ guint has_completion : 1;
+ guint inline_completion : 1;
+ guint popup_completion : 1;
+
+ GSource *check_completion_idle;
};
gboolean _gtk_entry_completion_resize_popup (GtkEntryCompletion *completion);