Commit Graph

55 Commits

Author SHA1 Message Date
e96ec3440d Fixes 59047.
2004-06-21  Eric Zhao  <eric.zhao@sun.com>

        Fixes 59047.

        * gal/a11y/e-table/gal-a11y-e-table-item.c: (model_to_view_row),
        (model_to_view_col), (eti_ref_at), (eti_a11y_cursor_changed_cb):
        Set the cell's ATK_STATE_SHOWING and ATK_STATE_VISIBLE properties to
        be TURE, so that gnopernicus can read the whole table line. Also
        convert the cursor's to position to view format, prevent potential
        bug.

svn path=/trunk/; revision=26436
2004-06-21 12:02:31 +00:00
8db565271c added cast
2004-06-10  Radek Doulik  <rodo@ximian.com>

	* gal/a11y/e-table/gal-a11y-e-table-click-to-add.c
	(idle_do_action): added cast

	* gal/a11y/e-table/gal-a11y-e-cell-tree.c
	(gal_a11y_e_cell_tree_new): added cast

	* gal/a11y/e-table/gal-a11y-e-cell.c: added #include
<gtk/gtkwindow.h>

	* gal/e-text/e-text.c (_get_position): removed unused variable

	* gal/e-text/e-completion.c: #if 0'ed e_completion_sort

	* tests/test-text.c (create_entry): removed unused variables
	added #include "gal/widgets/e-canvas-utils.h"
	added #include "gal/e-text/e-text-model.h"
	(create_text): removed unused variables
	(create_ro_text): ditto

	* tests/test-table-1.c (create_table): added cast

	* tests/test-completion.c (main): added cast

	* gal/a11y/e-text/gal-a11y-e-text.c (et_get_text): return NULL if
	check fails
	added #include <string.h> for strlen
	(et_get_text_after_offset): fixed typo defalut --> default
	(et_get_text_at_offset): ditto
	(et_get_character_extents): removed unused variables
	(et_set_selection): ditto
	(_et_command_cb): added default: label to quiet compiler

	* gal/a11y/e-table/gal-a11y-e-table-click-to-add-factory.c
	(gal_a11y_e_table_click_to_add_factory_create_accessible): return
	NULL if check fails

	* gal/a11y/e-table/gal-a11y-e-table-click-to-add.c
	(idle_do_action): fixed wrong cast
	(idle_do_action): removed unused variables
	(etcta_ref_child): return NULL if check fails
	(gal_a11y_e_table_click_to_add_new): ditto
	(gal_a11y_e_table_click_to_add_new): removed unused variable

	* gal/a11y/e-table/gal-a11y-e-table-item-factory.c
	(gal_a11y_e_table_item_factory_create_accessible): return NULL if
	fails
	(gal_a11y_e_table_item_factory_create_accessible): added cast
	(gal_a11y_e_table_item_factory_create_accessible): removed unused
	variable

	* gal/a11y/e-table/gal-a11y-e-table-item.c (eti_dispose): removed
	unused variable
	(eti_get_parent): ditto
	(eti_get_n_children): ditto
	(eti_ref_child): ditto
	(eti_get_index_in_parent): ditto
	(eti_ref_accessible_at_point): return value (NULL)
	(cell_destroyed): removed unused variable
	(cell_destroyed): ditto
	(table_add_row_selection): ditto
	added #inclued <string.h> for memset, memmove
	(eti_rows_inserted): removed unused variable
	(eti_rows_deleted): ditto
	(eti_header_structure_changed): ditto

	* gal/a11y/e-table/gal-a11y-e-cell-popup.c
	(gal_a11y_e_cell_popup_class_init): removed unused variable
	added #include "gal-a11y-e-cell-registry.h"
	(popup_cell_action): removed unused variable

	* gal/a11y/e-table/gal-a11y-e-cell-toggle.c (toggle_cell_action):
	removed unused variable

	* gal/a11y/e-table/gal-a11y-e-cell-tree.c: added #include
	"gal-a11y-e-cell-registry.h"
	(gal_a11y_e_cell_tree_new): add cast
	(gal_a11y_e_cell_tree_new): removed unused variable

	* gal/a11y/e-table/gal-a11y-e-cell-text.c: added #include
	<string.h>
	(ect_remove_selection): removed unused variable
	(ect_copy_text): added cast
	(ect_delete_text): ditto
	(ect_paste_text): ditto
	(ect_init): ditto

	* gal/a11y/e-table/gal-a11y-e-cell.c (eti_grab_focus): added cast
	(eti_grab_focus): ditto
	(eti_grab_focus): return TRUE (grab was successful)
	added #include <atk/atkstateset.h>

	* gal/a11y/e-table/gal-a11y-e-tree.c: added #include
	"gal-a11y-e-table-item.h"
	(gal_a11y_e_tree_new): removed unused variable

	* gal/e-text/e-text.c (_do_tooltip): removed unused variable
	(e_text_event): added cast
	(primary_clear_cb): removed unused variable
	(_get_position): ditto
	(_get_position): ditto
	#if 0'ed unused prototypes

	* gal/e-text/e-text-model.c (e_text_model_real_insert_length):
	removed unused variables

	* gal/e-text/e-completion.c (e_completion_sort): #if'0 ed, as it's
	not used anywhere

	* gal/widgets/e-reflow.c (items_inserted): remove unused variables

	* gal/widgets/e-categories.c (e_categories_get_property): remove
	unused variable

	* gal/widgets/e-categories-master-list-dialog.c
	(dialog_destroyed): added cast

	* gal/widgets/e-categories-master-list-combo.c
	(ecmlc_ecml_changed): remove unused variable

	* gal/widgets/color-palette.c: include string.h for memset
	prototype

svn path=/trunk/; revision=26289
2004-06-10 17:01:14 +00:00
4b829c4fff fixes to get rid of compiler warnings
2004-06-10  Radek Doulik  <rodo@ximian.com>

	* gal/a11y/e-table/gal-a11y-e-table-click-to-add.c
	(idle_do_action): added cast

	* gal/a11y/e-table/gal-a11y-e-cell-tree.c
	(gal_a11y_e_cell_tree_new): added cast

	* gal/a11y/e-table/gal-a11y-e-cell.c: added #include
<gtk/gtkwindow.h>

	* gal/e-text/e-text.c (_get_position): removed unused variable

	* gal/e-text/e-completion.c: #if 0'ed e_completion_sort

	* tests/test-text.c (create_entry): removed unused variables
	added #include "gal/widgets/e-canvas-utils.h"
	added #include "gal/e-text/e-text-model.h"
	(create_text): removed unused variables
	(create_ro_text): ditto

	* tests/test-table-1.c (create_table): added cast

	* tests/test-completion.c (main): added cast

	* gal/a11y/e-text/gal-a11y-e-text.c (et_get_text): return NULL if
	check fails
	added #include <string.h> for strlen
	(et_get_text_after_offset): fixed typo defalut --> default
	(et_get_text_at_offset): ditto
	(et_get_character_extents): removed unused variables
	(et_set_selection): ditto
	(_et_command_cb): added default: label to quiet compiler

	* gal/a11y/e-table/gal-a11y-e-table-click-to-add-factory.c
	(gal_a11y_e_table_click_to_add_factory_create_accessible): return
	NULL if check fails

	* gal/a11y/e-table/gal-a11y-e-table-click-to-add.c
	(idle_do_action): fixed wrong cast
	(idle_do_action): removed unused variables
	(etcta_ref_child): return NULL if check fails
	(gal_a11y_e_table_click_to_add_new): ditto
	(gal_a11y_e_table_click_to_add_new): removed unused variable

	* gal/a11y/e-table/gal-a11y-e-table-item-factory.c
	(gal_a11y_e_table_item_factory_create_accessible): return NULL if
	fails
	(gal_a11y_e_table_item_factory_create_accessible): added cast
	(gal_a11y_e_table_item_factory_create_accessible): removed unused
	variable

	* gal/a11y/e-table/gal-a11y-e-table-item.c (eti_dispose): removed
	unused variable
	(eti_get_parent): ditto
	(eti_get_n_children): ditto
	(eti_ref_child): ditto
	(eti_get_index_in_parent): ditto
	(eti_ref_accessible_at_point): return value (NULL)
	(cell_destroyed): removed unused variable
	(cell_destroyed): ditto
	(table_add_row_selection): ditto
	added #inclued <string.h> for memset, memmove
	(eti_rows_inserted): removed unused variable
	(eti_rows_deleted): ditto
	(eti_header_structure_changed): ditto

	* gal/a11y/e-table/gal-a11y-e-cell-popup.c
	(gal_a11y_e_cell_popup_class_init): removed unused variable
	added #include "gal-a11y-e-cell-registry.h"
	(popup_cell_action): removed unused variable

	* gal/a11y/e-table/gal-a11y-e-cell-toggle.c (toggle_cell_action):
	removed unused variable

	* gal/a11y/e-table/gal-a11y-e-cell-tree.c: added #include
	"gal-a11y-e-cell-registry.h"
	(gal_a11y_e_cell_tree_new): add cast
	(gal_a11y_e_cell_tree_new): removed unused variable

	* gal/a11y/e-table/gal-a11y-e-cell-text.c: added #include
	<string.h>
	(ect_remove_selection): removed unused variable
	(ect_copy_text): added cast
	(ect_delete_text): ditto
	(ect_paste_text): ditto
	(ect_init): ditto

	* gal/a11y/e-table/gal-a11y-e-cell.c (eti_grab_focus): added cast
	(eti_grab_focus): ditto
	(eti_grab_focus): return TRUE (grab was successful)
	added #include <atk/atkstateset.h>

	* gal/a11y/e-table/gal-a11y-e-tree.c: added #include
	"gal-a11y-e-table-item.h"
	(gal_a11y_e_tree_new): removed unused variable

	* gal/e-text/e-text.c (_do_tooltip): removed unused variable
	(e_text_event): added cast
	(primary_clear_cb): removed unused variable
	(_get_position): ditto
	(_get_position): ditto
	#if 0'ed unused prototypes

	* gal/e-text/e-text-model.c (e_text_model_real_insert_length):
	removed unused variables

	* gal/e-text/e-completion.c (e_completion_sort): #if'0 ed, as it's
	not used anywhere

	* gal/widgets/e-reflow.c (items_inserted): remove unused variables

	* gal/widgets/e-categories.c (e_categories_get_property): remove
	unused variable

	* gal/widgets/e-categories-master-list-dialog.c
	(dialog_destroyed): added cast

	* gal/widgets/e-categories-master-list-combo.c
	(ecmlc_ecml_changed): remove unused variable

	* gal/widgets/color-palette.c: include string.h for memset
	prototype

svn path=/trunk/; revision=26288
2004-06-10 17:00:45 +00:00
5a58230a6d clean code to avoid compiler warnings
2004-06-10  Radek Doulik  <rodo@ximian.com>

	* gal/a11y/e-table/gal-a11y-e-table-item.c: clean code to avoid
	compiler warnings

	Fixes #59858

svn path=/trunk/; revision=26280
2004-06-10 11:21:36 +00:00
4d20483f6c Add $(top_srcdir)/widgets/misc for the e-activity-handler.h stuff
2004-04-29  Rodney Dawes  <dobey@ximian.com>

	* calendar/Makefile.am (INCLUDES): Add $(top_srcdir)/widgets/misc
	for the e-activity-handler.h stuff

svn path=/trunk/; revision=25697
2004-04-30 02:49:01 +00:00
2ecf94cf3a If the week view has no spans, there is no visible events in the view.
* calendar/ea-week-view.c: (ea_week_view_get_n_children): If the
        week view has no spans, there is no visible events in the view.

svn path=/trunk/; revision=25596
2004-04-23 07:04:33 +00:00
09d810bba8 Fixes #48974.
2004-04-22  Eric Zhao  <eric.zhao@sun.com>

        Fixes #48974.

        * gal/a11y/e-table/gal-a11y-e-tree.c: (init_child_item):  add a check
        to see whether the corresponding AtkObject of ETableItem has been
        initialized.

svn path=/trunk/; revision=25580
2004-04-22 11:08:24 +00:00
5effa08f24 Fixes bug #52935.
2004-04-22  Eric Zhao  <eric.zhao@sun.com>

       Fixes bug #52935.

       * gal/a11y/e-table/gal-a11y-e-table-item.c: (eti_ref_at),
       (eti_reinit_data), (eti_clear_rows),
       (eti_tree_model_node_changed_cb), (gal_a11y_e_table_item_new),
       (eti_a11y_cursor_changed_cb): add cell-data synchronization when the
       table's model has been changed, prevent data inconsistency.

svn path=/trunk/; revision=25579
2004-04-22 11:01:31 +00:00
07ff8ea9f3 i'm sick of seeing ?'s in my cvs up lists
svn path=/trunk/; revision=25395
2004-04-09 17:33:41 +00:00
2c836a89a9 add some sanity check here. add atk_state_focused to focused cell, it is
2004-04-01  Yuedong Du  <yuedong.du@sun.com>

        * gal/a11y/e-table/gal-a11y-e-cell-text.c: (ect_get_caret_offset): add some sanity check here.
        * gal/a11y/e-table/gal-a11y-e-table-item.c: add atk_state_focused to focused cell, it is must.
        (gal_a11y_e_table_item_new), (eti_a11y_cursor_changed_cb):

svn path=/trunk/; revision=25277
2004-04-01 10:08:27 +00:00
de554db704 fix include
2004-03-15  JP Rosevear  <jpr@ximian.com>

	* calendar/ea-cal-view.h: fix include

svn path=/trunk/; revision=25082
2004-03-15 20:16:37 +00:00
ebe8e07f5d svn path=/trunk/; revision=25062
2004-03-15  Hao Sheng <hao.sheng@sun.com>

        * a11y/addressbook/Makefile.am:
        * a11y/calendar/Makefile.am:

svn path=/trunk/; revision=25062
2004-03-15 08:15:53 +00:00
b02e9c61d7 Contritbuted by Leon Zhang <leon.zhang@sun.com> add directory addressbook.
2003-03-15  Hao Sheng  <hao.sheng@sun.com>

        * Contritbuted by Leon Zhang <leon.zhang@sun.com>
        * Makefile.am: add directory addressbook.
        * implement basic accessbility addressbook's minicard.
        add new directory and Files below:
                addressbook/
                addressbook/Makefile.am
                addressbook/ea-addressbook.c
                addressbook/ea-addressbook-view.c
                addressbook/ea-minicard.c
                addressbook/ea-minicard-view.c
                addressbook/ea-addressbook.h
                addressbook/ea-addressbook-view.h
                addressbook/ea-minicard.h
                addressbook/ea-minicard-view.h

svn path=/trunk/; revision=25060
2004-03-15 06:21:53 +00:00
0a13fd3702 Fixed bug 51917, add atk support for ClickToAdd
2003-12-16  Yuedong Du  <yuedong.du@sun.com>

        Fixed bug 51917, add atk support for ClickToAdd

        * gal/a11y/e-table/Makefile.am: add files.
        * gal/a11y/e-table/gal-a11y-e-table-click-to-add-factory.c:
        (gal_a11y_e_table_click_to_add_factory_get_accessible_type),
        (gal_a11y_e_table_click_to_add_factory_create_accessible),
        (gal_a11y_e_table_click_to_add_factory_class_init),
        (gal_a11y_e_table_click_to_add_factory_init),
        (gal_a11y_e_table_click_to_add_factory_get_type): factory
        for ClickToAdd
        * gal/a11y/e-table/gal-a11y-e-table-click-to-add-factory.h:
        ditto
        * gal/a11y/e-table/gal-a11y-e-table-click-to-add.c:
        (etcta_get_n_actions), (etcta_get_description),
        (etcta_action_get_name), (idle_do_action), (etcta_do_action),
        (atk_action_interface_init): a "click" action interface.
        (etcta_get_name),
        (etcta_get_n_children), (etcta_ref_child): create accessible
        according to which child is available. Either rect or row.
        (etcta_class_init),
        (etcta_init), (gal_a11y_e_table_click_to_add_get_type),
        (etcta_event): listen to canvas event, emit children-changed signal
        when it found rect/row was changed.
        (gal_a11y_e_table_click_to_add_new):
        * gal/a11y/e-table/gal-a11y-e-table-click-to-add.h:
        * gal/a11y/e-table/gal-a11y-e-table-item-factory.c:
        (gal_a11y_e_table_item_factory_create_accessible):
        * gal/a11y/e-table/gal-a11y-e-table.c: (init_child_item),
        (et_get_n_children), (et_ref_child): change the trick way to
        create a11y object for a table item. Because ClickToAdd is also
        a table item, previous way do not work for clicktoadd.
        * gal/e-table/e-table-click-to-add.c: (etcta_class_init):
        atk_register the new a11y factory.

svn path=/trunk/; revision=23956
2003-12-17 02:35:20 +00:00
fa5a7a0472 corret index error in week view. impl. get_index_in_parent emit signal
2003-12-05  Bolian Yin <bolian.yin@sun.com>

        * calendar/ea-cal-view-event.c (ea_cal_view_event_get_index_in_parent):
corret index error in week view.
        * calendar/ea-day-view-cell.c: impl. get_index_in_parent
        * calendar/ea-day-view-main-item.c: emit signal "active-descendant-changed", fix error in selection_interface_ref_selection.
        * widgets/ea-calendar-cell.c: impl. get_index_in_parent.
        * widgets/ea-calendar-item.c: change signature of e_calendar_item_get_offset_for_date, emit signal "active-descendant-changed".

svn path=/trunk/; revision=23902
2003-12-10 03:56:31 +00:00
adcb9e2289 add entries for new source files add cases for jump button. add cases for
2003-12-09  Andrew Wu <Yang.Wu@sun.com>

        * calendar/Makefile.am: add entries for new source files
        * calendar/ea-calendar-helpers.c: add cases for jump button.
        * calendar/ea-calendar.c: add cases for week view and week view main item.
        * calendar/ea-jump-button.c: new impl.
        * calendar/ea-week-view-cell.c: new impl.
        * calendar/ea-week-view-main-item.c: new impl.
        * calendar/ea-week-view.c: add main item as first child.

svn path=/trunk/; revision=23892
2003-12-09 07:09:24 +00:00
effedc6c2f shortcut when cal_view is NULL. Change an action name. add check for event
2003-12-05  Bolian Yin <bolian.yin@sun.com>

        * calendar/ea-cal-view-event.c (ea_cal_view_event_new): shortcut when cal_view is NULL.
        * calendar/ea-cal-view.c: Change an action name.
        * calendar/ea-calendar.c (ea_calendar_focus_watcher): add check for event atk object.
        * calendar/ea-week-view.c (ea_week_view_get_n_children): correct impl.
          (get_visible_text_item_count): removed.

svn path=/trunk/; revision=23679
2003-12-09 01:35:29 +00:00
832436edc4 shortcut when cal_view is NULL. Change an action name. add check for event
2003-12-05  Bolian Yin <bolian.yin@sun.com>

        * calendar/ea-cal-view-event.c (ea_cal_view_event_new): shortcut when cal_view is NULL.
        * calendar/ea-cal-view.c: Change an action name.
        * calendar/ea-calendar.c (ea_calendar_focus_watcher): add check for event atk object.
        * calendar/ea-week-view.c (ea_week_view_get_n_children): correct impl.
          (get_visible_text_item_count): removed.

svn path=/trunk/; revision=23678
2003-12-09 01:28:57 +00:00
e3e2bafd79 A small fix from Andrew Wu.
svn path=/trunk/; revision=23671
2003-12-08 10:04:38 +00:00
ceb9cedfc4 Fixed #50844
2003-12-08  Andrew Wu <yang.wu@sun.com>
        Fixed #50844

        * gal/a11y/e-table/gal-a11y-e-cell-popup.c:
        * gal/a11y/e-table/gal-a11y-e-cell-popup.h:
          a11y impl. for e-cell-popup.

svn path=/trunk/; revision=23670
2003-12-08 05:52:32 +00:00
f6b7ede5b1 Remove hard coded disable deprecated flags
2003-12-06  JP Rosevear <jpr@ximian.com>

	* */Makefile.am: Remove hard coded disable deprecated flags

svn path=/trunk/; revision=23658
2003-12-06 18:08:00 +00:00
32db1813a3 (SHELL_IDLS): Only get Evolution.idl.
svn path=/trunk/; revision=23612
2003-12-03 17:57:06 +00:00
c0f6402330 Fixes #51145
2003-12-02  Bolian Yin  <bolian.yin@sun.com>

         Fixes #51145

         * gal/a11y/gal-a11y-e-table-item (eti_get_column_header): new impl.
         (eti_ref_child): add column headers as children

svn path=/trunk/; revision=23574
2003-12-02 08:25:17 +00:00
c84cfbc83a Fixes #51139
2003-12-02  Bolian Yin  <bolian.yin@sun.com>

        Fixes #51139

        * gal/a11y/gal-a11y-e-table-item: (gal_a11y_e_table_item_ref_selection)
        (gal_a11y_e_table_item_unref_selection): new functions.

        * gal/e-table/e-table-item.c : change the place of emitting ""selection_model_removed" signal.

svn path=/trunk/; revision=23571
2003-12-02 07:40:28 +00:00
addb2f0ea7 a11y implementations for ECellText. new functions to support corresponding
2003-12-02  Tim Wo  <tim.wo@sun.com>

	* gal/a11y/e-table/gal-a11y-e-cell-text.c: (ect_get_text),
	(ect_get_character_at_offset), (ect_get_caret_offset),
	(ect_get_character_count), (ect_get_n_selections),
	(ect_get_selection), (ect_add_selection), (ect_remove_selection),
	(ect_set_selection), (ect_set_caret_offset),
	(ect_set_text_contents), (ect_insert_text), (ect_copy_text),
	(ect_delete_text), (ect_cut_text), (ect_paste_text),
	(ect_class_init): a11y implementations for ECellText.
	* gal/e-table/e-cell-text.c: (e_cell_text_set_selection),
	(e_cell_text_get_selection), (e_cell_text_copy_clipboard),
	(e_cell_text_paste_clipboard), (e_cell_text_delete_selection): new
	functions to support corresponding atk operations.
	* gal/e-table/e-cell-text.h: some APIs added to support atk operations.

svn path=/trunk/; revision=23568
2003-12-02 07:20:04 +00:00
3e2e35b2a2 use table item to get the model. (gal_a11y_e_cell_toggle_new): use table
2003-12-02  Tim Wo  <tim.wo@sun.com>

	* gal/a11y/e-table/gal-a11y-e-cell-toggle.c:
	(gal_a11y_e_cell_toggle_dispose): use table item to get the model.
	(gal_a11y_e_cell_toggle_new): use table item to get the model.
	* gal/a11y/e-table/gal-a11y-e-cell-tree.c:
	(ectr_model_row_changed_cb): new function to deal with tree cell
	expansion and collapse
	(ectr_subcell_weak_ref): destroy the cell_tree a11y instance along
	with it's subcell's a11y instance.
	(gal_a11y_e_cell_tree_new): init the atk state of the tree cell,
	and connect to the model_row_change signal of table model, so that
	when the tree cell expands or collapses, the corresponding AtkState
	could be set.
	* gal/a11y/e-table/gal-a11y-e-cell-tree.h: add one member to save
	the connected signal id.

svn path=/trunk/; revision=23567
2003-12-02 06:14:34 +00:00
86ec8d221e don't assert row=0 as fault, it cause bug 51199.
2003-12-01  Yuedong Du  <yuedong.du@sun.com>

        * gal/a11y/e-table/gal-a11y-e-table-item.c:
        (gal_a11y_e_table_item_new): don't assert row=0 as fault, it cause bug
        51199.

svn path=/trunk/; revision=23566
2003-12-02 05:27:11 +00:00
46545a0a7f handle the structure changed signal of table model. Thus we can handle
2003-12-01  Yuedong Du  <yuedong.du@sun.com>

        * gal/a11y/e-table/gal-a11y-e-cell-toggle.c:
        (gal_a11y_e_cell_toggle_dispose):
        * gal/a11y/e-table/gal-a11y-e-table-item.c: (eti_dispose),
        (eti_header_structure_changed): handle the structure changed signal of
        table model. Thus we can handle table column add/remove/delete.
        (eti_real_initialize): connect to structure-changed signal.
        (gal_a11y_e_table_item_new): initialize the new added field - columns,
        which in turn record columns before change.

svn path=/trunk/; revision=23563
2003-12-02 05:19:51 +00:00
33a1687123 override the function in base class, to retrieve the content of the text.
2003-11-21  Tim Wo  <tim.wo@sun.com>

	* 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
2003-11-21 04:28:04 +00:00
d420759f1e don't reset these fields, we need these info to a11y weak ref on each cell
2003-11-19 Yuedong Du  <yuedong.du@sun.com>

        * gal/a11y/e-table/gal-a11y-e-cell.c: (eti_dispose): don't reset
        these fields, we need these info to a11y weak ref on each cell to
        do cell_destroy() correctly.
        * gal/a11y/e-table/gal-a11y-e-table-item.c: (eti_dispose),
        (cell_destroyed), (eti_ref_at), (eti_rows_inserted),
        (eti_rows_deleted), (eti_real_initialize), (eti_class_init),
        (gal_a11y_e_table_item_new): handle table model's row-inserted
        and row-deleted signal
        * gal/a11y/e-table/gal-a11y-e-tree.c: (init_child_item): sanity
        check to avoid crash.

svn path=/trunk/; revision=23456
2003-11-20 01:59:43 +00:00
2ba68734fd new files (gal-a11y-e-cell-tree.c/h) added adding 2 new functions to add
2003-11-03  Tim Wo  <tim.wo@sun.com>

	* gal/a11y/e-table/Makefile.am: new files (gal-a11y-e-cell-tree.c/h)
	added
	* gal/a11y/e-table/gal-a11y-e-cell.h: adding 2 new functions to add or
	remove atk states
	* gal/a11y/e-table/gal-a11y-e-cell.c (eti_dispose): unref the state_set
	(eti_ref_state_set): new function
	(eti_class_init): create and initialize the state_set
	(eti_init): override the "ref_state_set" function in AtkObjectClass with
	"eti_ref_state_set"
	(gal_a11y_e_cell_add_state): adding a return value
	(gal_a11y_e_cell_remove_state): new function
	* gal/e-table/e-cell-tree.c: (e_cell_tree_class_init): register
	GalA11yECellText as the a11y implementation for ECellText.
	(e_cell_tree_view_get_subcell_view): new function to retrieve the cell_view
	of subcell in ECellTree
	* gal/e-table/e-cell-tree.h: adding 1 new function to retrieve the cell_view
	of subcell in ECellTree
	* gal/a11y/e-table/gal-a11y-e-cell-tree.c: new file. A11y implementation
	for ECellTree
	* gal/a11y/e-table/gal-a11y-e-cell-tree.h: new file. A11y implementation
	for ECellTree

svn path=/trunk/; revision=23296
2003-11-12 05:12:04 +00:00
59b0ca9123 Fixes #50538
2003-11-11  Bolian Yin <bolian.yin@sun.com>

        Fixes #50538

        * new files:
                widgets/ea-calendar-cell.[hc]

        * widgets/ea-calendar-item: impl. atk selection and atk table interface.        * widgets/Makefile.am : use shared object library (.so)

svn path=/trunk/; revision=23283
2003-11-11 10:33:43 +00:00
5a6f72675e Fixes # 50480
2003-11-11  Bolian Yin <bolian.yin@sun.com>

        Fixes # 50480

        * gal/a11y/e-table/gal-a11y-e-table-item: listen on "selection_model_removed" and "selection_model_added".

svn path=/trunk/; revision=23282
2003-11-11 03:42:58 +00:00
0f2ddecb1d don't include toplevel libical
2003-11-07  JP Rosevear <jpr@ximian.com>

	* calendar/Makefile.am (INCLUDES): don't include toplevel libical

svn path=/trunk/; revision=23227
2003-11-07 17:57:09 +00:00
9935d47e98 Handle some more renaming
2003-11-07  JP Rosevear <jpr@ximian.com>

	* Handle some more renaming

svn path=/trunk/; revision=23213
2003-11-07 07:12:35 +00:00
200606f928 Various changes to merge in evolution-data-server reliance.
svn path=/trunk/; revision=23206
2003-11-07 05:52:24 +00:00
fd52cd5eeb Fixes # 48509
2003-11-04  Bolian Yin <bolian.yin@sun.com>

        Fixes # 48509

        * new files:
                ea-cell-table.h ea-cell-table.c
        * calendar/Makefile.am: add entries for new files
        * calendar/New files added:
                ea-day-view-main-item.c ea-day-view-main-item.h
                ea-day-view-cell.c ea-day-view-cell.h
        * Add debug info and remove some non-C99 compilers warnings.
        * calendar/ea-cal-view: add action interface.

svn path=/trunk/; revision=23180
2003-11-04 08:15:56 +00:00
97003e3366 *e-table/gal-a11y-e-table-item: defunct widget checking, selection
2003-10-30  Bolian Yin <bolian.yin@sun.com>

        *e-table/gal-a11y-e-table-item: defunct widget checking, selection interface

svn path=/trunk/; revision=23167
2003-11-03 06:40:50 +00:00
d0524e055c new function to deal with grabing table cell focus
2003-10-30  Tim Wo  <tim.wo@sun.com>
	* gal/a11y/e-table/gal-a11y-e-cell.c (eti_grab_focus): new function
	to deal with grabing table cell focus
	(eti_atk_component_iface_init): Override "grab_focus" virtual function
	with eti_grab_focus of AtkComponent interface. (#50131)
	* gal/e-table/e-cell-text.c: (e_cell_text_class_init): register
	GalA11yECellText as the a11y implementation for ECellText.

svn path=/trunk/; revision=23166
2003-11-03 04:20:10 +00:00
9d85d642b2 add new file for toggle cell a11y object. new a11y object toggle cell
2003-10-26  Yuedong Du  <yuedong.du@sun.com>

        * gal/a11y/e-table/Makefile.am: add new file for toggle cell a11y
         object.
        * gal/a11y/e-table/gal-a11y-e-cell-toggle.c: new a11y object toggle cell        (gal_a11y_e_cell_toggle_get_type),
        (gal_a11y_e_cell_toggle_class_init), (toggle_cell_action), the
        implementation of toggle cell action.
        (gal_a11y_e_cell_toggle_new):
        * gal/a11y/e-table/gal-a11y-e-cell-toggle.h: ditto
        * gal/a11y/e-table/gal-a11y-e-cell.c:
        (_gal_a11y_e_cell_get_action_info),
        (_gal_a11y_e_cell_destroy_action_info),
        (gal_a11y_e_cell_add_action), (gal_a11y_e_cell_remove_action),
        (gal_a11y_e_cell_remove_action_by_name),
        (gal_a11y_e_cell_action_get_n_actions),
        (gal_a11y_e_cell_action_get_name),
        (gal_a11y_e_cell_action_get_description),
        (gal_a11y_e_cell_action_set_description),
        (gal_a11y_e_cell_action_get_keybinding), (idle_do_action),
        (gal_a11y_e_cell_action_do_action),
        (gal_a11y_e_cell_atk_action_interface_init),
        (gal_a11y_e_cell_type_add_action_interface),
        (gal_a11y_e_cell_add_state): helper functions for add a action,
        stealed from gailcell.c
        * gal/a11y/e-table/gal-a11y-e-cell.h:
        * gal/e-table/e-cell-toggle.c: (e_cell_toggle_class_init): register
        toggle's a11y object.

svn path=/trunk/; revision=23095
2003-10-28 05:41:05 +00:00
e440b4e39b make sure the declation is at the beginning of the block.
2003-10-11  Larry Ewing  <lewing@ximian.com>

        * gal/a11y/e-text/ChangeLog: make sure the declation is at the
        beginning of the block.

svn path=/trunk/; revision=22868
2003-10-11 19:32:36 +00:00
5bbde1a630 add new files. set the right role. new file.
2003-10-11  Yuedong Du  <yuedong.du@sun.com>

        * gal/a11y/e-table/Makefile.am: add new files.
        * gal/a11y/e-table/gal-a11y-e-cell.c: (gal_a11y_e_cell_construct):
        set the right role.
        * gal/a11y/e-table/gal-a11y-e-table-item-factory.c: new file.
        (gal_a11y_e_table_item_factory_get_accessible_type),
        (gal_a11y_e_table_item_factory_create_accessible),
        (gal_a11y_e_table_item_factory_class_init),
        (gal_a11y_e_table_item_factory_init),
        (gal_a11y_e_table_item_factory_get_type): factory for the table item
        a11y object. in create_accessible, we judge the type of widget
        then set correct role.
        * gal/a11y/e-table/gal-a11y-e-table-item-factory.h: ditto.
        * gal/a11y/e-table/gal-a11y-e-tree-factory.c: new file.
        (gal_a11y_e_tree_factory_get_accessible_type),
        (gal_a11y_e_tree_factory_create_accessible),
        (gal_a11y_e_tree_factory_class_init),
        (gal_a11y_e_tree_factory_init), (gal_a11y_e_tree_factory_get_type):
        factory for a11y object of etree. Mostly copyed from
        gal-a11y-e-table-factory.c.
        * gal/a11y/e-table/gal-a11y-e-tree-factory.h: ditto
        * gal/a11y/e-table/gal-a11y-e-tree.c: (init_child_item),
        (et_ref_accessible_at_point), (et_get_n_children), (et_ref_child),
        (et_class_init), (et_atk_component_iface_init), (et_init),
        (gal_a11y_e_tree_get_type), (gal_a11y_e_tree_new):a11y object for
        etree object, mostly copied from gal-a11y-e-table.c. init_child_item
        set correct role for the table item.
        * gal/a11y/e-table/gal-a11y-e-tree.h: ditto.
        * gal/e-table/e-table-item.c: (eti_class_init): register factory
        for table item a11y object.
        * gal/e-table/e-tree.c: (e_tree_get_item), (e_tree_class_init):
        add new access fuction to get the table item of etree.
        * gal/e-table/e-tree.h: ditto

svn path=/trunk/; revision=22867
2003-10-11 03:00:59 +00:00
11d7ad93e9 set the role of the atk object in the initialization function of
2003-09-27  Tim Wo <tim.wo@sun.com>

	* gal/a11y/e-text/gal-a11y-e-text-factory.c
	(gal_a11y_e_text_factory_create_accessible): set the role of the
	atk object in the initialization function of GalA11yEText
	* gal/a11y/e-text/gal-a11y-e-text.c (is_a_seperator),
	(find_word_start), (find_word_end), (find_sentence_start),
	(find_sentence_end), (find_line_start), (find_line_end): 7 new
	private functions, They are all used by text retrieving functions
	below.
	(et_get_text_after_offset): implementation added
	(et_get_text_at_offset): implementation added
	(et_get_text_before_offset): implementation added
	(et_get_character_extents): implementation added
	(et_get_offset_at_point): implementation added
	(et_set_caret_offset): use command to modify the cursor position,
	so that we can be notified and emit "text-caret-moved" signal in
	function _et_command_cb.
	(_et_reposition_cb): new function to emit "text-changed" signal
	for the atk object
	(_et_command_cb): new function to emit "text-caret-moved" and
	"text-selection-changed" signals for the atk object
	(et_real_initialize): new function to deal with initialization of
	GalA11yEText. It set some signal callbacks and the atk role of
	the atk object (set GalA11yEText's role to ATK_ROLE_TEXT).
	(et_class_init): override the virtual function "initialize" in
	baseclass (AtkObject) with "et_real_initialize"

svn path=/trunk/; revision=22856
2003-10-10 08:02:31 +00:00
18407a6beb INCLUDE path fixes for changes made to libical build.
2003-10-09  Jeffrey Stedfast  <fejj@ximian.com>

	* calendar/Makefile.am: INCLUDE path fixes for changes made to
	libical build.

svn path=/trunk/; revision=22843
2003-10-09 21:01:52 +00:00
030eb06b18 some checking code added to ensure that end_offset and start_offset both
2003-09-22  Tim Wo <tim.wo@sun.com>

	* gal/a11y/e-text/gal-a11y-e-text.c (et_get_text): some checking
	code added to ensure that end_offset and start_offset both belong
	to [0, length of the text] and end_offset >= start_offset or it
	will lead to a crash
	(et_get_caret_offset):no need to deal with character encoding
	here, since the widget has already delt with it.
	(et_get_selection): dealing with character encoding and ensure
	end_offset >= start_offset, or it will lead to a crash
	(et_add_selection): we can not get the ETextEventProcessor here,
	so the old implementation leads to a crash. Modify the parameters
	"selection_start" and "selection_end" directly instead
	(et_remove_selection): implementation added
	(et_set_selection): implementation added
	(et_set_caret_offset): no need to deal with character encoding
	here, since the widget has already delt with it. Another change
	is when offset == -1, move the caret to the end of the text,
	this keeps the same behavior as GailTextview

svn path=/trunk/; revision=22685
2003-09-24 11:26:00 +00:00
43eb05b879 make the code be compliant with C89, or it can't be compiled on solaris.
2003-09-13  Tim Wo <tim.wo@sun.com>

	* gal/a11y/e-text/gal-a11y-e-text.c (et_insert_text): make the
	code be compliant with C89, or it can't be compiled on solaris.
	(et_copy_text): implementation added
	(et_cut_text): implementation added
	(et_delete_text): implementation added
	(et_paste_text): implementation added

svn path=/trunk/; revision=22606
2003-09-18 13:47:25 +00:00
8b364a6d16 GalA11yETextFactory should inherit from AtkObjectFactory not AtkObject.
2003-09-08  Tim Wo <tim.wo@sun.com>

	* gal/a11y/e-text/gal-a11y-e-text-factory.h: GalA11yETextFactory
	should inherit from AtkObjectFactory not AtkObject. (#47097).
	* gal/a11y/e-text/gal-a11y-e-text.c (et_class_init): Set value
	for "component_parent_iface". (#47097)
	* gal/e-text/e-text.c (e_text_class_init): Added registration
	code for GalA11yETextFactory. (#47097)

svn path=/trunk/; revision=22551
2003-09-12 13:55:57 +00:00
bc7f395554 add
svn path=/trunk/; revision=22518
2003-09-11 14:59:30 +00:00
e8fc140c70 add widgets directory; move calendar idl stuff to calendar directory; stop
2003-08-27  Bolian Yin <bolian.yin@sun.com>

        * Makefile.am: add widgets directory; move calendar idl stuff to calendar directory; stop make a single shared lib for whole a11y stuff.
        * ea-factory.h: make factory macros available to GOBJECT
        * calendar/Makefile.am: add calendar idl stuff
        * calendar/ea-cal-view-event.c: add atkcomponent interface.
        * calendar/ea-gnome-calendar.c (ea_gcal_switch_view_cb): add details for "children_changed".
        * new widgets directory for widgets a11y stuff, new files are:
                widgets/Makefile.am, widgets/ea-calendar-item.c, widgets/ea-calendar-item.h, widgets/ea-widgets.c, widgets/ea-widgets.h

svn path=/trunk/; revision=22384
2003-08-27 03:36:42 +00:00
ba4e2baca4 adapted to changes in ECalViewEvent.
2003-08-20  Rodrigo Moya <rodrigo@ximian.com>

	* calendar/ea-cal-view-event.c (ea_cal_view_event_get_name):
	adapted to changes in ECalViewEvent.

svn path=/trunk/; revision=22309
2003-08-20 10:17:47 +00:00