Commit 586283ec authored by Alejandro Piñeiro's avatar Alejandro Piñeiro

[gail] Clean the code to check the redundan object on the show watcher

The watcher doesn't add a window if is a redundant object. This
patch fixes two things:

 * The check was made twice.
 * It uses a check with the string "redundant object", when the
   defined role ATK_ROLE_REDUNDANT_OBJECT is available
parent e1029b90
......@@ -220,13 +220,7 @@ gail_toplevel_show_event_watcher (GSignalInvocationHint *ihint,
return TRUE;
child = gtk_widget_get_accessible (widget);
if (!strcmp (atk_role_get_name (atk_object_get_role (child)), "redundant object"))
{
return TRUE;
}
child = gtk_widget_get_accessible (widget);
if (!strcmp (atk_role_get_name (atk_object_get_role (child)), "redundant object"))
if (atk_object_get_role (child) == ATK_ROLE_REDUNDANT_OBJECT)
{
return TRUE;
}
......
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