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
This commit is contained in:
Christian Dywan 2009-01-21 00:03:00 +00:00 committed by Christian Dywan
parent 71a975f69b
commit a8cc721e7c
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,11 @@
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.
2009-01-20 Torsten Schoenfeld <kaffeetisch@gmx.de>
* gtk/gtkstyle.c: Add a "Since: 2.16" tag to gtk_style_get.

View File

@ -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)