mirror of https://github.com/GNOME/gimp.git
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:
parent
29d63f49e5
commit
92216a635a
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue