Commit 47635a24 authored by Benjamin Otte's avatar Benjamin Otte

themingengine: Return NULL for nonexistant theming engines

his also makes the function conform to its documentation.
parent 90620603
......@@ -1020,8 +1020,7 @@ gtk_theming_engine_load (const gchar *name)
if (!engine)
if (G_UNLIKELY (!default_engine))
default_engine = g_object_new (GTK_TYPE_THEMING_ENGINE, NULL);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment