mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-22 06:44:07 +00:00
themingengine: Return NULL for nonexistant theming engines
his also makes the function conform to its documentation.
This commit is contained in:
parent
9062060304
commit
47635a2434
@ -1020,8 +1020,7 @@ gtk_theming_engine_load (const gchar *name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!engine)
|
||||
else
|
||||
{
|
||||
if (G_UNLIKELY (!default_engine))
|
||||
default_engine = g_object_new (GTK_TYPE_THEMING_ENGINE, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user