mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
switch: Use the right value for comparison
This commit is contained in:
parent
ae95cdf8fc
commit
9ad31a5a21
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user