]> Pileus Git - ~andy/gtk/commit
Fixes based on comments from Marco Pesenti Gritti.
authorKristian Rietveld <kris@gtk.org>
Sat, 11 Oct 2003 13:32:16 +0000 (13:32 +0000)
committerKristian Rietveld <kristian@src.gnome.org>
Sat, 11 Oct 2003 13:32:16 +0000 (13:32 +0000)
commitc3841e701988474911da4636c367a2eb2d062a10
treed6ff3129b47e63216b6e182166b18378090e3659
parent3b2003c9a27628ba358f6dd41f070e4e7eca102b
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.
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkentry.c
gtk/gtkentrycompletion.c
gtk/gtkentryprivate.h