aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
authorHarish Krishnaswamy <kharish@novell.com>2005-01-08 18:53:53 +0800
committerHarish Krishnaswamy <kharish@src.gnome.org>2005-01-08 18:53:53 +0800
commiteac831f58e75c6d8eb98972d3721d8e792490617 (patch)
tree7ee76cb7de187f51b8270cd9426ea0c14ec5506c /calendar/gui/e-week-view.c
parenteded2adbdb1ef63ade4c03920de113cd3abccf3a (diff)
downloadgsoc2013-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-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 17ebc66370..5ddc16ff28 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -699,6 +699,7 @@ e_week_view_realize (GtkWidget *widget)
week_view->reminder_icon = e_icon_factory_get_icon ("stock_bell", E_ICON_SIZE_MENU);
week_view->recurrence_icon = e_icon_factory_get_icon ("stock_refresh", E_ICON_SIZE_MENU);
week_view->timezone_icon = e_icon_factory_get_icon ("stock_timezone", E_ICON_SIZE_MENU);
+ week_view->attach_icon = e_icon_factory_get_icon ("stock_attach", E_ICON_SIZE_MENU);
}
static void
@@ -737,6 +738,8 @@ e_week_view_unrealize (GtkWidget *widget)
week_view->recurrence_icon = NULL;
g_object_unref (week_view->timezone_icon);
week_view->timezone_icon = NULL;
+ g_object_unref (week_view->attach_icon);
+ week_view->attach_icon = NULL;
if (GTK_WIDGET_CLASS (e_week_view_parent_class)->unrealize)
(*GTK_WIDGET_CLASS (e_week_view_parent_class)->unrealize)(widget);
@@ -2578,6 +2581,8 @@ e_week_view_reshape_event_span (EWeekView *week_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++;