Commit 9ad31a5a authored by Emmanuele Bassi's avatar Emmanuele Bassi

switch: Use the right value for comparison

parent ae95cdf8
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment