From 33a1687123f37ddea0d9bea13977c38f5f73b212 Mon Sep 17 00:00:00 2001 From: Tim Wo Date: Fri, 21 Nov 2003 04:28:04 +0000 Subject: override the function in base class, to retrieve the content of the text. 2003-11-21 Tim Wo * gal/a11y/e-table/gal-a11y-e-cell-text.c: (ect_get_name): override the function in base class, to retrieve the content of the text. (ect_do_action_edit): begin edit the cell when issuing the action. (ect_class_init): override the "get_name" function. (ect_init): add an action "edit" to the object. (gal_a11y_e_cell_text_get_type): add AtkAction interface to this type. * gal/a11y/e-table/gal-a11y-e-cell-toggle.c (gal_a11y_e_cell_toggle_dispose): disconnect the connected signal when disposing. (gal_a11y_e_cell_toggle_class_init): to override the dispose function. (toggle_cell_action): set position of the click event more precisely. (model_change_cb): set or remove the ATK_STATE_CHECKED flag according to the value in the model when it changes. (gal_a11y_e_cell_toggle_new): init the ATK_STATE_CHECKED flag and connect to the model cell change signal. * gal/a11y/e-table/gal-a11y-e-cell-toggle.h: add one member to save the connected signal id. * gal/a11y/e-table/gal-a11y-e-cell.c: (gal_a11y_e_cell_grab_focus): notify the selection model that the cursor has been changed. * gal/a11y/e-table/gal-a11y-e-table-item.c: (eti_a11y_cursor_changed_cb): emiting a signal to notify the AT applictions that the active descendant has been changed. (#51055) svn path=/trunk/; revision=23466 --- a11y/e-table/gal-a11y-e-cell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'a11y/e-table/gal-a11y-e-cell.c') diff --git a/a11y/e-table/gal-a11y-e-cell.c b/a11y/e-table/gal-a11y-e-cell.c index 2dfe6445be..34a7429cd5 100644 --- a/a11y/e-table/gal-a11y-e-cell.c +++ b/a11y/e-table/gal-a11y-e-cell.c @@ -131,8 +131,8 @@ eti_grab_focus (AtkComponent *component) e_table = gtk_widget_get_parent (GNOME_CANVAS_ITEM (a11y->item)->canvas); view_row = e_table_view_to_model_row (E_TABLE (e_table), a11y->row); - e_selection_model_clear (a11y->item->selection); e_selection_model_select_single_row (a11y->item->selection, view_row); + e_selection_model_change_cursor (a11y->item->selection, view_row, a11y->view_col); gtk_widget_grab_focus (e_table); toplevel = gtk_widget_get_toplevel (e_table); -- cgit v1.2.3