[gtk+] switch: Use the right value for comparison



commit 9ad31a5a2117f8fb0c24b0ff4afc41a1daf26118
Author: Emmanuele Bassi <ebassi linux intel com>
Date:   Mon Nov 29 13:23:28 2010 +0000

    switch: Use the right value for comparison

 gtk/gtkswitch.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c
index 8fd406f..a73e25b 100644
--- a/gtk/gtkswitch.c
+++ b/gtk/gtkswitch.c
@@ -965,7 +965,7 @@ gtk_switch_accessible_get_type (void)
        * for GtkWidget; if Gail is being used then this means GailWidget.
        */
       factory = atk_registry_get_factory (atk_get_default_registry (), GTK_TYPE_WIDGET);
-      if (factory == G_TYPE_INVALID)
+      if (factory == NULL)
         return G_TYPE_INVALID;
 
       parent_atk_type = atk_object_factory_get_accessible_type (factory);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]