diff options
author | billh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c> | 2006-06-09 13:16:03 +0000 |
---|---|---|
committer | billh <billh@e2bd861d-eb25-0410-b326-f6ed22b6b98c> | 2006-06-09 13:16:03 +0000 |
commit | 53036cbbccb8fc9ce65b356a3909a2676ebbe289 (patch) | |
tree | 1a994dd7887880ed626e8f40e2961e4f505bf93a /test | |
parent | f64087e7de6e2b0c488ca0153bd479011bcaad21 (diff) | |
download | at-spi2-core-53036cbbccb8fc9ce65b356a3909a2676ebbe289.tar.gz |
Docs tweaks.
Fix marshalling of new states to/from ATK, and in cspi/libspi.
Added STATE_VISITED.
Added some table selection API test to event-listener-test.
git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@810 e2bd861d-eb25-0410-b326-f6ed22b6b98c
Diffstat (limited to 'test')
-rw-r--r-- | test/event-listener-test.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/event-listener-test.c b/test/event-listener-test.c index 165b9e3c..1571d400 100644 --- a/test/event-listener-test.c +++ b/test/event-listener-test.c @@ -334,6 +334,21 @@ report_event (const AccessibleEvent *event, void *user_data) count, count/g_timer_elapsed(timer, NULL)); } + + /* check for Table interface - if present, query selections */ + if (Accessible_isTable (event->source)) + { + gint n_selected_rows = 0; + gint n_selected_cols = 0; + long int *rows, *cols; + AccessibleTable *table = Accessible_getTable (event->source); + + n_selected_rows = AccessibleTable_getSelectedRows (table, &rows); + n_selected_cols = AccessibleTable_getSelectedColumns (table, &cols); + + g_print ("TABLE interface: selectedRows=%d, selectedCols = %d\n", + n_selected_rows, n_selected_cols); + } } void |