themingengine: Return NULL for nonexistant theming engines

his also makes the function conform to its documentation.
This commit is contained in:
Benjamin Otte 2011-07-21 02:41:10 +02:00
parent 9062060304
commit 47635a2434

View File

@ -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);