[gtk+/gtk-2-24] Clean the code to check the redundan object on the show watcher
- From: Alejandro Piñeiro Iglesias <apinheiro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] Clean the code to check the redundan object on the show watcher
- Date: Mon, 27 Dec 2010 15:44:32 +0000 (UTC)
commit 1e93d01d47ecfdf5c176443eff472c0956c72e1b
Author: Alejandro Piñeiro <apinheiro igalia com>
Date: Sun Dec 26 00:43:02 2010 +0100
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
modules/other/gail/gailtoplevel.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/modules/other/gail/gailtoplevel.c b/modules/other/gail/gailtoplevel.c
index 2dbd15b..7660e47 100644
--- a/modules/other/gail/gailtoplevel.c
+++ b/modules/other/gail/gailtoplevel.c
@@ -222,13 +222,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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]