From a8cc721e7ce698f439f6a2f32660170c1cbd825d Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 21 Jan 2009 00:03:00 +0000 Subject: =?UTF-8?q?Bug=20567413=20=E2=80=93=20GtkComboBoxEntry=20doesn't?= =?UTF-8?q?=20emit=20"changed"=20signal=20on=20entry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2009-01-21 Christian Dywan 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 --- gtk/gtkcombobox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gtk') 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) -- cgit v1.2.1