diff options
author | nags <nags@nags-desktop.(none)> | 2009-07-23 22:55:38 -0700 |
---|---|---|
committer | nags <nags@nags-desktop.(none)> | 2009-07-23 22:55:38 -0700 |
commit | b54421858dd5c1503e2f71fab5c46edfd219d9e2 (patch) | |
tree | 28f2b85ef63732da80526107fefe860b90a2ad78 | |
parent | 35c4e3dbe13f92e15fc1ed215d63c1a93565d437 (diff) |
2009-07-23 Nagappan Alagappan <nagappan@gmail.com>
* link.c (click): Added new file for link object type.
* remap.c (get_object_info): Added link object.
-rw-r--r-- | src/ChangeLog | 6 | ||||
-rw-r--r-- | src/Makefile.am | 1 | ||||
-rw-r--r-- | src/client-handler.c | 6 | ||||
-rw-r--r-- | src/ldtp-gui-comp.h | 3 | ||||
-rw-r--r-- | src/remap.c | 8 |
5 files changed, 24 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 95cc406..a12ed9a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2009-07-23 Nagappan Alagappan <nagappan@gmail.com> + + * link.c (click): Added new file for link object type. + + * remap.c (get_object_info): Added link object. + 2009-07-12 Nagappan Alagappan <nagappan@gmail.com> * tree-table.c (tree_table_main): Fixes bug # 587456 – checkrow diff --git a/src/Makefile.am b/src/Makefile.am index 3a97341..77e1e12 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -42,6 +42,7 @@ ldtp_SOURCES = \ ldtp-appmap.c \ ldtp-appmap.h \ list.c \ + link.c \ menu.c \ menu-item.c \ page-tab-list.c \ diff --git a/src/client-handler.c b/src/client-handler.c index 66acf98..df63a45 100644 --- a/src/client-handler.c +++ b/src/client-handler.c @@ -1845,6 +1845,12 @@ handle_request (LDTPClientContext* cctxt, *err = radio_menu_item_main (cctxt, cctxt->req->command); break; +#ifdef ENABLE_NEWROLES + case SPI_ROLE_LINK: + *err = link_main (cctxt, cctxt->req->command); + break; +#endif + case SPI_ROLE_PUSH_BUTTON: *err = push_button_main (cctxt, cctxt->req->command); break; diff --git a/src/ldtp-gui-comp.h b/src/ldtp-gui-comp.h index 055ad7a..b31cc8a 100644 --- a/src/ldtp-gui-comp.h +++ b/src/ldtp-gui-comp.h @@ -55,6 +55,9 @@ LDTPErrorCode layered_pane_main (LDTPClientContext* cctxt, int command); // list.c LDTPErrorCode list_main (LDTPClientContext* cctxt, int command); +// link.c +LDTPErrorCode link_main (LDTPClientContext* cctxt, int command); + // menu.c LDTPErrorCode menu_main (LDTPClientContext* cctxt, int command, char *window_name); diff --git a/src/remap.c b/src/remap.c index d91ab3d..2d7225f 100644 --- a/src/remap.c +++ b/src/remap.c @@ -44,6 +44,7 @@ static int table = 0, combo_box = 0, page_tab_list = 0, page_tab = 0, + link_obj = 0, spin_button = 0, button = 0, tbutton = 0, @@ -88,6 +89,7 @@ reset_count() combo_box = 0; page_tab_list = 0; page_tab = 0; + link_obj = 0; spin_button = 0; button = 0; tbutton = 0; @@ -596,6 +598,12 @@ get_object_info (Accessible *accessible) obj_info->object_type = g_strdup ("text"); } #ifdef ENABLE_NEWROLES + else if (role == SPI_ROLE_LINK) { + obj_info->prefix = g_strdup ("lnk"); + obj_info->instance_index = link_obj; + link_obj++; + obj_info->object_type = g_strdup ("link"); + } else if (role == SPI_ROLE_ENTRY) { obj_info->prefix = g_strdup ("txt"); obj_info->instance_index = text; |