summaryrefslogtreecommitdiff
path: root/test/simple-at.c
diff options
context:
space:
mode:
authorbillh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c>2002-04-13 12:55:01 +0000
committerbillh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c>2002-04-13 12:55:01 +0000
commit1bc2abb5482c3f96b3545820bc69d02c7f65d557 (patch)
tree673f3904143acb7804e6799764c155df2ee19fc8 /test/simple-at.c
parent5bdba7ea9dc6d4f71fe403e7f378f8c05d141129 (diff)
downloadat-spi2-core-1bc2abb5482c3f96b3545820bc69d02c7f65d557.tar.gz
Connected implementation for Accessibility_Magnifier_exit ()
CORBA method. git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@266 e2bd861d-eb25-0410-b326-f6ed22b6b98c
Diffstat (limited to 'test/simple-at.c')
-rw-r--r--test/simple-at.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/simple-at.c b/test/simple-at.c
index d35ade7c..63bec0af 100644
--- a/test/simple-at.c
+++ b/test/simple-at.c
@@ -33,6 +33,7 @@
static void report_focus_event (const AccessibleEvent *event, void *user_data);
static void report_generic_event (const AccessibleEvent *event, void *user_data);
+static void report_window_event (const AccessibleEvent *event, void *user_data);
static void report_text_event (const AccessibleEvent *event, void *user_data);
static void report_button_press (const AccessibleEvent *event, void *user_data);
static void check_property_change (const AccessibleEvent *event, void *user_data);
@@ -56,6 +57,7 @@ static SPIBoolean name_changed = FALSE;
static AccessibleEventListener *focus_listener;
static AccessibleEventListener *property_listener;
static AccessibleEventListener *generic_listener;
+static AccessibleEventListener *window_listener;
static AccessibleEventListener *button_listener;
static AccessibleEventListener *text_listener;
static AccessibleKeystrokeListener *command_key_listener;
@@ -92,6 +94,7 @@ main (int argc, char **argv)
focus_listener = SPI_createAccessibleEventListener (report_focus_event, NULL);
property_listener = SPI_createAccessibleEventListener (check_property_change, NULL);
generic_listener = SPI_createAccessibleEventListener (report_generic_event, NULL);
+ window_listener = SPI_createAccessibleEventListener (report_window_event, NULL);
text_listener = SPI_createAccessibleEventListener (report_text_event, NULL);
button_listener = SPI_createAccessibleEventListener (report_button_press, NULL);
SPI_registerGlobalEventListener (focus_listener, "focus:");
@@ -105,6 +108,7 @@ main (int argc, char **argv)
SPI_registerGlobalEventListener (text_listener, "object:text-caret-moved");
SPI_registerGlobalEventListener (generic_listener, "object:text-changed");
SPI_registerGlobalEventListener (button_listener, "Gtk:GtkWidget:button-press-event");
+ SPI_registerGlobalEventListener (window_listener, "Gtk:GtkWidget:window-state-event");
n_desktops = SPI_getDesktopCount ();
for (i=0; i<n_desktops; ++i)
@@ -332,6 +336,12 @@ report_generic_event (const AccessibleEvent *event, void *user_data)
}
void
+report_window_event (const AccessibleEvent *event, void *user_data)
+{
+ fprintf (stderr, "%s event received\n", event->type);
+}
+
+void
report_text_event (const AccessibleEvent *event, void *user_data)
{
AccessibleText *text = Accessible_getText (event->source);