]> Pileus Git - ~andy/gtk/commitdiff
themingengine: Return NULL for nonexistant theming engines
authorBenjamin Otte <otte@redhat.com>
Thu, 21 Jul 2011 00:41:10 +0000 (02:41 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 21 Jul 2011 00:43:54 +0000 (02:43 +0200)
his also makes the function conform to its documentation.

gtk/gtkthemingengine.c

index 1e5d735d649eccfc2476d66954bdc36c3b935d81..d07640931575d0652c395dce8deabc5f26a60df3 100644 (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);