diff options
author | Harish Krishnaswamy <kharish@novell.com> | 2005-01-08 18:53:53 +0800 |
---|---|---|
committer | Harish Krishnaswamy <kharish@src.gnome.org> | 2005-01-08 18:53:53 +0800 |
commit | eac831f58e75c6d8eb98972d3721d8e792490617 (patch) | |
tree | 7ee76cb7de187f51b8270cd9426ea0c14ec5506c /calendar/gui/e-day-view.c | |
parent | eded2adbdb1ef63ade4c03920de113cd3abccf3a (diff) | |
download | gsoc2013-evolution-eac831f58e75c6d8eb98972d3721d8e792490617.tar.gz gsoc2013-evolution-eac831f58e75c6d8eb98972d3721d8e792490617.tar.zst gsoc2013-evolution-eac831f58e75c6d8eb98972d3721d8e792490617.zip |
Added support for attachments support to calendar items.
2005-01-08 Harish Krishnaswamy <kharish@novell.com>
Added support for attachments support to calendar items.
svn path=/trunk/; revision=28287
Diffstat (limited to 'calendar/gui/e-day-view.c')
-rw-r--r-- | calendar/gui/e-day-view.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index f675d797ad..fb5de111ee 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -1098,6 +1098,7 @@ e_day_view_realize (GtkWidget *widget) day_view->recurrence_icon = e_icon_factory_get_icon ("stock_refresh", E_ICON_SIZE_MENU); day_view->timezone_icon = e_icon_factory_get_icon ("stock_timezone", E_ICON_SIZE_MENU); day_view->meeting_icon = e_icon_factory_get_icon ("stock_people", E_ICON_SIZE_MENU); + day_view->attach_icon = e_icon_factory_get_icon ("stock_attach", E_ICON_SIZE_MENU); /* Set the canvas item colors. */ @@ -1184,6 +1185,8 @@ e_day_view_unrealize (GtkWidget *widget) day_view->timezone_icon = NULL; g_object_unref (day_view->meeting_icon); day_view->meeting_icon = NULL; + g_object_unref (day_view->attach_icon); + day_view->attach_icon = NULL; if (GTK_WIDGET_CLASS (e_day_view_parent_class)->unrealize) (*GTK_WIDGET_CLASS (e_day_view_parent_class)->unrealize)(widget); @@ -4282,7 +4285,8 @@ e_day_view_reshape_long_event (EDayView *day_view, num_icons++; if (e_cal_component_has_organizer (comp)) num_icons++; - + if (e_cal_component_has_attachments (comp)) + num_icons++; e_cal_component_get_categories_list (comp, &categories_list); for (elem = categories_list; elem; elem = elem->next) { char *category; @@ -4447,6 +4451,8 @@ e_day_view_reshape_day_event (EDayView *day_view, num_icons++; if (e_cal_component_has_recurrences (comp)) num_icons++; + if (e_cal_component_has_attachments (comp)) + num_icons++; if (event->different_timezone) num_icons++; if (e_cal_component_has_organizer (comp)) |