[clutter: 2/4] a11y: We don't need to explicitly manage window events
- From: Alejandro PiÃeiro Iglesias <apinheiro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter: 2/4] a11y: We don't need to explicitly manage window events
- Date: Tue, 30 Aug 2011 10:48:46 +0000 (UTC)
commit 7635cb6f171514ba3422c058d97ba48cc18a1a1e
Author: Alejandro PiÃeiro <apinheiro igalia com>
Date: Wed Aug 10 13:06:14 2011 +0200
a11y: We don't need to explicitly manage window events
clutter/cally/cally-util.c | 38 +-------------------------------------
1 files changed, 1 insertions(+), 37 deletions(-)
---
diff --git a/clutter/cally/cally-util.c b/clutter/cally/cally-util.c
index cb33654..744e972 100644
--- a/clutter/cally/cally-util.c
+++ b/clutter/cally/cally-util.c
@@ -89,7 +89,6 @@ static void insert_hf (gpointer k
gpointer value,
gpointer data);
static AtkKeyEventStruct * atk_key_event_from_clutter_event_key (ClutterKeyEvent *event);
-static void do_window_event_initialization (void);
/* This is just a copy of the Gail one, a shared library or place to
@@ -184,33 +183,7 @@ cally_util_add_global_event_listener (GSignalEmissionHook listener,
split_string = g_strsplit (event_type, ":", 3);
- if (split_string)
- {
- if (!strcmp ("window", split_string[0]))
- {
- /* Using ClutterStage as the window equivalent, although
- several methods (move, etc) are missing. This would be
- probably defined for other window-related classes (MxWindow)
-
- FIXME: for this reason, this process should be extendable
- on the future.*/
- static gboolean initialized = FALSE;
-
- if (initialized == FALSE)
- {
- do_window_event_initialization ();
- initialized = TRUE;
- }
-
- rc = add_listener (listener, "CallyStage", 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;
}
@@ -543,12 +516,3 @@ cally_util_stage_removed_cb (ClutterStageManager *stage_manager,
g_signal_handlers_disconnect_by_func (stage, cally_key_snooper_cb, NULL);
}
-
-static void
-do_window_event_initialization (void)
-{
- /*
- * Ensure that CallyStageClass exists.
- */
- g_type_class_unref (g_type_class_ref (CALLY_TYPE_STAGE));
-}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]