diff options
author | Andrew Wu <Yang.Wu@sun.com> | 2003-12-09 15:09:24 +0800 |
---|---|---|
committer | Bolian Yin <byin@src.gnome.org> | 2003-12-09 15:09:24 +0800 |
commit | adcb9e228978aded6cdf78f6dd1f8c460b650504 (patch) | |
tree | 449427aaaf8322d1d9fe039ac6f5ceb1e286abf3 /a11y/calendar/ea-week-view.c | |
parent | 0fdb5d6dc167d32226452dd521221c1ed994f573 (diff) | |
download | gsoc2013-evolution-adcb9e228978aded6cdf78f6dd1f8c460b650504.tar gsoc2013-evolution-adcb9e228978aded6cdf78f6dd1f8c460b650504.tar.gz gsoc2013-evolution-adcb9e228978aded6cdf78f6dd1f8c460b650504.tar.bz2 gsoc2013-evolution-adcb9e228978aded6cdf78f6dd1f8c460b650504.tar.lz gsoc2013-evolution-adcb9e228978aded6cdf78f6dd1f8c460b650504.tar.xz gsoc2013-evolution-adcb9e228978aded6cdf78f6dd1f8c460b650504.tar.zst gsoc2013-evolution-adcb9e228978aded6cdf78f6dd1f8c460b650504.zip |
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
Diffstat (limited to 'a11y/calendar/ea-week-view.c')
-rw-r--r-- | a11y/calendar/ea-week-view.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/a11y/calendar/ea-week-view.c b/a11y/calendar/ea-week-view.c index 3c3e13a268..966ec49b28 100644 --- a/a11y/calendar/ea-week-view.c +++ b/a11y/calendar/ea-week-view.c @@ -71,7 +71,7 @@ ea_week_view_get_type (void) */ factory = atk_registry_get_factory (atk_get_default_registry (), - e_cal_view_get_type()); + e_calendar_view_get_type()); derived_atk_type = atk_object_factory_get_accessible_type (factory); g_type_query (derived_atk_type, &query); @@ -227,6 +227,9 @@ ea_week_view_get_n_children (AtkObject *accessible) ++count; } + /* "+1" for the main item */ + count++; + #ifdef ACC_DEBUG printf("AccDebug: week view %p has %d children\n", (void *)week_view, count); #endif @@ -255,6 +258,11 @@ ea_week_view_ref_child (AtkObject *accessible, gint index) week_view = E_WEEK_VIEW (GTK_ACCESSIBLE (accessible)->widget); max_count = week_view->events->len; + if (index == 0) { + /* index == 0 is the main item */ + atk_object = atk_gobject_accessible_for_object (G_OBJECT (week_view->main_canvas_item)); + g_object_ref (atk_object); + } else for (event_index = 0; event_index < max_count; ++event_index) { EWeekViewEvent *event; EWeekViewEventSpan *span; @@ -282,7 +290,7 @@ ea_week_view_ref_child (AtkObject *accessible, gint index) else continue; - if (count == (index + 1)) { + if (count == index) { if (span->text_item) { /* Not use atk_gobject_accessible_for_object for event * text_item we need to do special thing here @@ -290,7 +298,7 @@ ea_week_view_ref_child (AtkObject *accessible, gint index) atk_object = ea_calendar_helpers_get_accessible_for (span->text_item); } else { - atk_object = atk_gobject_accessible_for_object (G_OBJECT(week_view->jump_buttons[current_day == -1 ? 0 : current_day])); + atk_object = ea_calendar_helpers_get_accessible_for (week_view->jump_buttons[current_day == -1 ? 0 : current_day]); } g_object_ref (atk_object); break; |