diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2003-08-20 18:17:47 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-08-20 18:17:47 +0800 |
commit | ba4e2baca496463bde3393e58a6951811946042a (patch) | |
tree | 2c8c8f7c23c1c927938fd501116cd8dab30a689a /a11y/calendar/ea-cal-view-event.c | |
parent | 4ad72d24ee36553c85c1bbf21b22c46f77c2ac82 (diff) | |
download | gsoc2013-evolution-ba4e2baca496463bde3393e58a6951811946042a.tar.gz gsoc2013-evolution-ba4e2baca496463bde3393e58a6951811946042a.tar.zst gsoc2013-evolution-ba4e2baca496463bde3393e58a6951811946042a.zip |
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
Diffstat (limited to 'a11y/calendar/ea-cal-view-event.c')
-rw-r--r-- | a11y/calendar/ea-cal-view-event.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/a11y/calendar/ea-cal-view-event.c b/a11y/calendar/ea-cal-view-event.c index b7405acafc..40418a56e1 100644 --- a/a11y/calendar/ea-cal-view-event.c +++ b/a11y/calendar/ea-cal-view-event.c @@ -167,7 +167,7 @@ ea_cal_view_event_get_name (AtkObject *accessible) ECalViewEvent *event; gchar *tmp_name; gchar *new_name = g_strdup (""); - CalComponentText comp_text; + const char *summary; atk_gobj = ATK_GOBJECT_ACCESSIBLE (accessible); g_obj = atk_gobject_accessible_get_object (atk_gobj); @@ -175,16 +175,14 @@ ea_cal_view_event_get_name (AtkObject *accessible) return NULL; event = ea_calendar_helpers_get_cal_view_event_from (GNOME_CANVAS_ITEM(g_obj)); - if (event && event->comp) { - CalComponent *comp = event->comp; - - if (cal_component_has_alarms (comp)) { + if (event && event->comp_data) { + if (cal_util_component_has_alarms (event->comp_data->icalcomp)) { tmp_name = new_name; new_name = g_strconcat (new_name, "alarm ", NULL); g_free (tmp_name); } - if (cal_component_has_recurrences (comp)) { + if (cal_util_component_has_recurrences (event->comp_data->icalcomp)) { tmp_name = new_name; new_name = g_strconcat (new_name, "recurrence ", NULL); g_free (tmp_name); @@ -196,7 +194,7 @@ ea_cal_view_event_get_name (AtkObject *accessible) g_free (tmp_name); } - if (cal_component_has_organizer (comp)) { + if (cal_util_component_has_organizer (event->comp_data->icalcomp)) { tmp_name = new_name; new_name = g_strconcat (new_name, "meeting ", NULL); g_free (tmp_name); @@ -206,11 +204,10 @@ ea_cal_view_event_get_name (AtkObject *accessible) new_name = g_strconcat (new_name, "event. Summary is ", NULL); g_free (tmp_name); - cal_component_get_summary (event->comp, &comp_text); - if (comp_text.value) { - char *text = (char*) comp_text.value; + summary = icalcomponent_get_summary (event->comp_data->icalcomp); + if (summary) { tmp_name = new_name; - new_name = g_strconcat (new_name, text, NULL); + new_name = g_strconcat (new_name, summary, NULL); g_free (tmp_name); } else { |