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.
This commit is contained in:
Ell 2019-03-13 04:17:47 -04:00
parent 29d63f49e5
commit 92216a635a
1 changed files with 2 additions and 1 deletions

View File

@ -706,7 +706,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;