mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 14:20:21 +00:00
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:
parent
ac7e6ecc14
commit
13c0e7a0ff
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user