app: in gimp_tool_gui_set_response_sensitive(), allow non-existent ID
In gimp_tool_gui_set_response_sensitive(), silently ignore non-
existent response IDs, instead of emitting a CRITICAL, to match the
behavior of GtkDialog and GimpOverlayDialog. This simplifies code
with optional dialog responses.
(cherry picked from commit 92216a635a
)
This commit is contained in:
@ -709,7 +709,8 @@ gimp_tool_gui_set_response_sensitive (GimpToolGui *gui,
|
|||||||
|
|
||||||
entry = response_entry_find (private->response_entries, response_id);
|
entry = response_entry_find (private->response_entries, response_id);
|
||||||
|
|
||||||
g_return_if_fail (entry != NULL);
|
if (! entry)
|
||||||
|
return;
|
||||||
|
|
||||||
entry->sensitive = sensitive;
|
entry->sensitive = sensitive;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user