Re: [g-a-devel]Window events for activate and deactivate
- From: Bill Haneman <bill haneman sun com>
- To: "Padraig O'Briain" <Padraig Obriain sun com>
- Cc: gnome-accessibility-devel gnome org
- Subject: Re: [g-a-devel]Window events for activate and deactivate
- Date: 08 May 2002 13:24:58 +0100
On Wed, 2002-05-08 at 11:35, Padraig O'Briain wrote:
> The attached patch adds support in the ATK bridge for window events
> window:activate and window:deactivate.
>
> OK to commit?
Yes please, thanks a lot!
-Bill
> Padraig
> ----
>
> ? registryd/at-spi-registryd
> cvs server: Diffing .
> Index: ChangeLog
> ===================================================================
> RCS file: /cvs/gnome/at-spi/ChangeLog,v
> retrieving revision 1.198
> diff -u -p -r1.198 ChangeLog
> --- ChangeLog 3 May 2002 22:55:33 -0000 1.198
> +++ ChangeLog 8 May 2002 10:31:37 -0000
> @@ -1,3 +1,11 @@
> +2002-05-08 Padraig O'Briain <padraig obriain sun com>
> +
> + * atk-bridge/bridge.c:
> + (spi_atk_register_event_listeners) Call atk_add_global_event_listener()
> + for window:activate and window:deactiveate
> + (atk_bridge_property_event_listener atk_bridge_signal_listener
> + atk_bridge_window_event_listener) Tidy debug code
> +
> 2002-05-02 Marc Mulcahy <marc mulcahy sun com>
>
> * libspi/accessible.c (impl_accessibility_accessible_get_role_name):
> cvs server: Diffing atk-bridge
> Index: atk-bridge/bridge.c
> ===================================================================
> RCS file: /cvs/gnome/at-spi/atk-bridge/bridge.c,v
> retrieving revision 1.35
> diff -u -p -r1.35 bridge.c
> --- atk-bridge/bridge.c 18 Apr 2002 02:45:27 -0000 1.35
> +++ atk-bridge/bridge.c 8 May 2002 10:31:37 -0000
> @@ -203,6 +203,12 @@ spi_atk_register_event_listeners (void)
> id = atk_add_global_event_listener (spi_atk_bridge_window_event_listener,
> "window:restore");
> g_array_append_val (listener_ids, id);
> + id = atk_add_global_event_listener (spi_atk_bridge_window_event_listener,
> + "window:activate");
> + g_array_append_val (listener_ids, id);
> + id = atk_add_global_event_listener (spi_atk_bridge_window_event_listener,
> + "window:deactivate");
> + g_array_append_val (listener_ids, id);
>
> add_signal_listener ("Gtk:AtkObject:state-change");
> add_signal_listener ("Gtk:AtkObject:children-changed");
> @@ -411,7 +417,7 @@ spi_atk_bridge_property_event_listener (
> #ifdef SPI_BRIDGE_DEBUG
> GSignalQuery signal_query;
> const gchar *name;
> - gchar *s, *s2;
> + const gchar *s, *s2;
>
> g_signal_query (signal_hint->signal_id, &signal_query);
> name = signal_query.signal_name;
> @@ -552,7 +558,7 @@ spi_atk_bridge_signal_listener (GSignalI
> const gchar *name;
> gint detail1 = 0, detail2 = 0;
> #ifdef SPI_BRIDGE_DEBUG
> - gchar *s, *s2;
> + const gchar *s, *s2;
> #endif
>
> g_signal_query (signal_hint->signal_id, &signal_query);
> @@ -563,7 +569,7 @@ spi_atk_bridge_signal_listener (GSignalI
> s2 = g_type_name (G_OBJECT_TYPE (g_value_get_object (param_values + 0)));
> s = atk_object_get_name (ATK_OBJECT (g_value_get_object (param_values + 0)));
> fprintf (stderr, "Received signal %s:%s from object %s (gail %s)\n",
> - g_type_name (signal_query.itype), name, s, s2);
> + g_type_name (signal_query.itype), name, s ? s : "<NULL>" , s2);
> #endif
>
> gobject = g_value_get_object (param_values + 0);
> @@ -589,7 +595,7 @@ spi_atk_bridge_window_event_listener (GS
> GSignalQuery signal_query;
> const gchar *name;
> #ifdef SPI_BRIDGE_DEBUG
> - gchar *s, *s2;
> + const gchar *s, *s2;
> #endif
>
> g_signal_query (signal_hint->signal_id, &signal_query);
> @@ -600,7 +606,7 @@ spi_atk_bridge_window_event_listener (GS
> s2 = g_type_name (G_OBJECT_TYPE (g_value_get_object (param_values + 0)));
> s = atk_object_get_name (ATK_OBJECT (g_value_get_object (param_values + 0)));
> fprintf (stderr, "Received signal %s:%s from object %s (gail %s)\n",
> - g_type_name (signal_query.itype), name, s, s2);
> + g_type_name (signal_query.itype), name, s ? s : "<NULL>" , s2);
> #endif
>
> gobject = g_value_get_object (param_values + 0);
> cvs server: Diffing cspi
> cvs server: Diffing cspi/bonobo
> cvs server: Diffing docs
> cvs server: Diffing docs/reference
> cvs server: Diffing docs/reference/cspi
> cvs server: Diffing docs/reference/cspi/tmpl
> cvs server: Diffing docs/reference/idl
> cvs server: Diffing docs/reference/idl/tmpl
> cvs server: Diffing idl
> cvs server: Diffing libspi
> cvs server: Diffing po
> cvs server: Diffing registryd
> cvs server: Diffing test
> cvs server: Diffing util
> cvs server: Diffing util/idl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]