summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAlejandro Piñeiro <apinheiro@igalia.com>2010-12-26 00:43:02 +0100
committerAlejandro Piñeiro <apinheiro@igalia.com>2010-12-27 16:23:55 +0100
commit586283ecbbfc0c5fb3354c07e978c680fe89f129 (patch)
treed269ea679ddce85da8389f1abd309262f4eb16fe /modules
parente1029b907c862435b0464b7105b22582a4fb25c8 (diff)
downloadgtk+-586283ecbbfc0c5fb3354c07e978c680fe89f129.tar.gz
[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
Diffstat (limited to 'modules')
-rw-r--r--modules/other/gail/gailtoplevel.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/modules/other/gail/gailtoplevel.c b/modules/other/gail/gailtoplevel.c
index f998a7007a..83a8583a42 100644
--- a/modules/other/gail/gailtoplevel.c
+++ b/modules/other/gail/gailtoplevel.c
@@ -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;
}