Emit ::changed when removing the active row. (#452056, Paul Pogonyshev)

2007-07-09  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted): Emit
        ::changed when removing the active row.  (#452056, Paul Pogonyshev)


svn path=/trunk/; revision=18416
This commit is contained in:
Matthias Clasen 2007-07-09 18:23:49 +00:00 committed by Matthias Clasen
parent ac7e6ecc14
commit 13c0e7a0ff
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-07-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkcombobox.c (gtk_combo_box_model_row_deleted): Emit
::changed when removing the active row. (#452056, Paul Pogonyshev)
2007-07-09 Matthias Clasen <mclasen@redhat.com> 2007-07-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtksearchenginesimple.c: Address some thread-safety * gtk/gtksearchenginesimple.c: Address some thread-safety

View File

@ -3077,10 +3077,11 @@ gtk_combo_box_model_row_deleted (GtkTreeModel *model,
{ {
GtkComboBox *combo_box = GTK_COMBO_BOX (user_data); GtkComboBox *combo_box = GTK_COMBO_BOX (user_data);
if (combo_box->priv->cell_view) if (!gtk_tree_row_reference_valid (combo_box->priv->active_row))
{ {
if (!gtk_tree_row_reference_valid (combo_box->priv->active_row)) if (combo_box->priv->cell_view)
gtk_cell_view_set_displayed_row (GTK_CELL_VIEW (combo_box->priv->cell_view), NULL); gtk_cell_view_set_displayed_row (GTK_CELL_VIEW (combo_box->priv->cell_view), NULL);
g_signal_emit (combo_box, combo_box_signals[CHANGED], 0);
} }
if (combo_box->priv->tree_view) if (combo_box->priv->tree_view)