aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view-event-item.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2001-07-03 03:44:16 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2001-07-03 03:44:16 +0800
commit309177c38a868abb86f3158264ea2053748a5809 (patch)
treedbf0ae0c903d5dced4d216fc16b2da141f8569c9 /calendar/gui/e-week-view-event-item.c
parent44bdae41f77f732f1e0347f32872ecde23984974 (diff)
downloadgsoc2013-evolution-309177c38a868abb86f3158264ea2053748a5809.tar
gsoc2013-evolution-309177c38a868abb86f3158264ea2053748a5809.tar.gz
gsoc2013-evolution-309177c38a868abb86f3158264ea2053748a5809.tar.bz2
gsoc2013-evolution-309177c38a868abb86f3158264ea2053748a5809.tar.lz
gsoc2013-evolution-309177c38a868abb86f3158264ea2053748a5809.tar.xz
gsoc2013-evolution-309177c38a868abb86f3158264ea2053748a5809.tar.zst
gsoc2013-evolution-309177c38a868abb86f3158264ea2053748a5809.zip
use the new self-contained e_categories_config_open_dialog_for_entry()
2001-07-02 Rodrigo Moya <rodrigo@ximian.com> * gui/dialogs/task-page.c (categories_clicked_cb): * gui/dialogs/event-page.c (categories_clicked_cb): use the new self-contained e_categories_config_open_dialog_for_entry() function * gui/e-week-view-event-item.c (e_week_view_item_draw_icons): * gui/e-day-view-top-item.c (e_day_view_reshape_long_event): (e_day_view_reshape_day_event): ditto * gui/e-day-view-main-item.c (e_day_view_main_item_draw_day_event): use e_categories_config_get_icon_for() to retrieve the icon associated with each category svn path=/trunk/; revision=10699
Diffstat (limited to 'calendar/gui/e-week-view-event-item.c')
-rw-r--r--calendar/gui/e-week-view-event-item.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/calendar/gui/e-week-view-event-item.c b/calendar/gui/e-week-view-event-item.c
index 023b297992..06a065d364 100644
--- a/calendar/gui/e-week-view-event-item.c
+++ b/calendar/gui/e-week-view-event-item.c
@@ -31,6 +31,7 @@
#include <config.h>
+#include "e-util/e-categories-config.h"
#include "e-week-view-event-item.h"
#include <gtk/gtksignal.h>
@@ -617,9 +618,9 @@ e_week_view_event_item_draw_icons (EWeekViewEventItem *wveitem,
GdkBitmap *mask;
category = (char *) elem->data;
- /* FIXME: get icon for this category */
- pixmap = week_view->recurrence_icon;
- mask = week_view->recurrence_mask;
+ e_categories_config_get_icon_for (category, &pixmap, &mask);
+ if (pixmap == NULL || mask == NULL)
+ continue;
if (icon_x + E_WEEK_VIEW_ICON_WIDTH <= x2) {
gdk_gc_set_clip_origin (gc, icon_x, icon_y);