widgets: Block signals when changing visible filters
eec9d512 did not block calls to
gimp_drawable_filters_editor_visible_all_toggled () when
updating the "All Visible" toggle button in
gimp_drawable_filters_editor_set_sensitive (). This resulted
in unexpected visibility changes in some combinations of
filters being turned on and off.
This patch adds the blocking calls around the call to
gtk_toggle_button_set_active () to keep this consistent.
This commit is contained in:
parent
1d4f942239
commit
8eae22306a
1 changed files with 7 additions and 0 deletions
|
|
@ -454,8 +454,15 @@ gimp_drawable_filters_editor_set_sensitive (GimpDrawableTreeView *view)
|
|||
is_editable = (index >= first_editable &&
|
||||
index <= last_editable);
|
||||
|
||||
g_signal_handlers_block_by_func (editor->visible_button,
|
||||
gimp_drawable_filters_editor_visible_all_toggled,
|
||||
view);
|
||||
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (editor->visible_button),
|
||||
has_visible_filters);
|
||||
g_signal_handlers_unblock_by_func (editor->visible_button,
|
||||
gimp_drawable_filters_editor_visible_all_toggled,
|
||||
view);
|
||||
|
||||
gtk_widget_set_sensitive (editor->visible_button,
|
||||
TRUE);
|
||||
gtk_widget_set_sensitive (editor->edit_button,
|
||||
|
|
|
|||
Loading…
Reference in a new issue