summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorChristian Dywan <christian@twotoasts.de>2009-01-21 00:03:00 +0000
committerChristian Dywan <cdywan@src.gnome.org>2009-01-21 00:03:00 +0000
commita8cc721e7ce698f439f6a2f32660170c1cbd825d (patch)
tree992851ef491e5e569a12bd1c7096c2b0b02ca7dc /gtk
parent71a975f69b62abac4cf6d38434faba0cb4775ddd (diff)
downloadgtk+-a8cc721e7ce698f439f6a2f32660170c1cbd825d.tar.gz
Bug 567413 – GtkComboBoxEntry doesn't emit "changed" signal on entry
2009-01-21 Christian Dywan <christian@twotoasts.de> Bug 567413 – GtkComboBoxEntry doesn't emit "changed" signal on entry editing * gtk/gtkcombobox.c (gtk_combo_box_set_active): Return only if index is set. Patch by Carl-Anton Ingmarsson. svn path=/trunk/; revision=22152
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkcombobox.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkcombobox.c b/gtk/gtkcombobox.c
index dc3aae1aa7..d0d73fcd58 100644
--- a/gtk/gtkcombobox.c
+++ b/gtk/gtkcombobox.c
@@ -4845,7 +4845,8 @@ gtk_combo_box_set_active (GtkComboBox *combo_box,
{
/* Save index, in case the model is set after the index */
combo_box->priv->active = index_;
- return;
+ if (index_ != -1)
+ return;
}
if (index_ != -1)