[gtk+] a11y: Don't manage window events as a exception



commit 424434960020c8dd41e7c92d13ebb41eff84ff49
Author: Alejandro PiÃeiro <apinheiro igalia com>
Date:   Tue Aug 23 17:58:53 2011 +0200

    a11y: Don't manage window events as a exception
    
    https://bugzilla.gnome.org/show_bug.cgi?id=657260

 gtk/a11y/gailutil.c |   23 +++--------------------
 1 files changed, 3 insertions(+), 20 deletions(-)
---
diff --git a/gtk/a11y/gailutil.c b/gtk/a11y/gailutil.c
index b835b02..e9ca92b 100644
--- a/gtk/a11y/gailutil.c
+++ b/gtk/a11y/gailutil.c
@@ -1,4 +1,5 @@
 /* GAIL - The GNOME Accessibility Implementation Library
+ * Copyright 2011, F123 Consulting & Mais DiferenÃas
  * Copyright 2001, 2002, 2003 Sun Microsystems Inc.
  *
  * This library is free software; you can redistribute it and/or
@@ -270,26 +271,7 @@ gail_util_add_global_event_listener (GSignalEmissionHook  listener,
 
   split_string = g_strsplit (event_type, ":", 3);
 
-  if (split_string)
-    {
-      if (!g_strcmp0 ("window", split_string[0]))
-        {
-          static gboolean initialized = FALSE;
-
-          if (!initialized)
-            {
-              do_window_event_initialization ();
-              initialized = TRUE;
-            }
-          rc = add_listener (listener, "GtkWindowAccessible", split_string[1], event_type);
-        }
-      else
-        {
-          rc = add_listener (listener, split_string[1], split_string[2], event_type);
-        }
-
-      g_strfreev (split_string);
-    }
+  rc = add_listener (listener, split_string[1], split_string[2], event_type);
 
   return rc;
 }
@@ -494,4 +476,5 @@ _gail_util_install (void)
   atk_class->get_toolkit_version = gail_util_get_toolkit_version;
 
   listener_list = g_hash_table_new_full (g_int_hash, g_int_equal, NULL, g_free);
+  do_window_event_initialization ();
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]