[gtk+] themingengine: Return NULL for nonexistant theming engines
- From: Benjamin Otte <otte src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gtk+] themingengine: Return NULL for nonexistant theming engines
 
- Date: Thu, 21 Jul 2011 00:45:47 +0000 (UTC)
 
commit 47635a24342c9a6e5c2463e0252e115d04d3496b
Author: Benjamin Otte <otte redhat com>
Date:   Thu Jul 21 02:41:10 2011 +0200
    themingengine: Return NULL for nonexistant theming engines
    
    his also makes the function conform to its documentation.
 gtk/gtkthemingengine.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index 1e5d735..d076409 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);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]