+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):
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");
#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;
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);
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);
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);
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);