summaryrefslogtreecommitdiff
path: root/gtk/gtkentryprivate.h
diff options
context:
space:
mode:
authorKristian Rietveld <kris@gtk.org>2003-10-11 13:32:16 +0000
committerKristian Rietveld <kristian@src.gnome.org>2003-10-11 13:32:16 +0000
commitc3841e701988474911da4636c367a2eb2d062a10 (patch)
treed6ff3129b47e63216b6e182166b18378090e3659 /gtk/gtkentryprivate.h
parent3b2003c9a27628ba358f6dd41f070e4e7eca102b (diff)
downloadgdk-pixbuf-c3841e701988474911da4636c367a2eb2d062a10.tar.gz
Fixes based on comments from Marco Pesenti Gritti.
Sat Oct 11 15:23:27 2003 Kristian Rietveld <kris@gtk.org> Fixes based on comments from Marco Pesenti Gritti. * gtk/gtkentry.c (gtk_entry_set_text): block the completion changed signal handler, avoids the completion popup to popup when text is set programmatically in most cases (we actually have to handle this in the _editable functions as well, but that will break popping up when the user actually typed something :), (gtk_entry_completion_key_press): when handling enter, bail out when nothing has been selected, (gtk_entry_completion_changed): don't popdown when the entry content changed. * gtk/gtkentrycompletion.c (gtk_entry_completion_init), (gtk_entry_completion_selected_changed): unselect_all on the first selected changed signal. Avoids having a default row selected, (_gtk_entry_completion_popup): don't select the first row by default. * gtk/gtkentryprivate.h (struct _GtkEntryCompletionPrivate): add a first_sel_changed field.
Diffstat (limited to 'gtk/gtkentryprivate.h')
-rw-r--r--gtk/gtkentryprivate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkentryprivate.h b/gtk/gtkentryprivate.h
index 741ec3803..657595e5a 100644
--- a/gtk/gtkentryprivate.h
+++ b/gtk/gtkentryprivate.h
@@ -35,6 +35,7 @@ struct _GtkEntryCompletionPrivate
GtkTreeViewColumn *column;
GtkTreeModelFilter *filter_model;
GtkListStore *actions;
+ gboolean first_sel_changed;
GtkEntryCompletionMatchFunc match_func;
gpointer match_data;