From: Benjamin Otte Date: Thu, 21 Jul 2011 00:41:10 +0000 (+0200) Subject: themingengine: Return NULL for nonexistant theming engines X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=47635a24342c9a6e5c2463e0252e115d04d3496b;p=~andy%2Fgtk themingengine: Return NULL for nonexistant theming engines his also makes the function conform to its documentation. --- diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c index 1e5d735d6..d07640931 100644 --- a/gtk/gtkthemingengine.c +++ b/gtk/gtkthemingengine.c @@ -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);