app: all remaining g_assert() replaced by critical warning and return...

... in app/core.
Continuing on my crusade against asserting and crashing GIMP.
This commit is contained in:
Jehan
2018-01-22 15:55:47 +01:00
parent b4c7dd8fd8
commit 4c2df9b365
36 changed files with 69 additions and 57 deletions

View File

@ -104,8 +104,8 @@ gimp_drawable_stack_constructed (GObject *object)
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (g_type_is_a (gimp_container_get_children_type (container),
GIMP_TYPE_DRAWABLE));
g_return_if_fail (g_type_is_a (gimp_container_get_children_type (container),
GIMP_TYPE_DRAWABLE));
gimp_container_add_handler (container, "update",
G_CALLBACK (gimp_drawable_stack_drawable_update),