Protect proxy combo box notifications against recursion
This can happen when switching between custom and other elements.
This commit is contained in:
parent
a888a802ec
commit
672b7ab70a
1 changed files with 4 additions and 0 deletions
|
@ -247,10 +247,14 @@ proxy_combo_box_changed_cb (GtkComboBox* button,
|
|||
}
|
||||
else if (value != custom_value && GTK_IS_ENTRY (child))
|
||||
{
|
||||
g_signal_handlers_block_by_func (
|
||||
button, proxy_combo_box_changed_cb, object);
|
||||
/* Force the combo to change the item again */
|
||||
gtk_widget_destroy (child);
|
||||
gtk_combo_box_set_active (button, value + 1);
|
||||
gtk_combo_box_set_active (button, value);
|
||||
g_signal_handlers_unblock_by_func (
|
||||
button, proxy_combo_box_changed_cb, object);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue