From 309177c38a868abb86f3158264ea2053748a5809 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Mon, 2 Jul 2001 19:44:16 +0000 Subject: use the new self-contained e_categories_config_open_dialog_for_entry() 2001-07-02 Rodrigo Moya * 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 --- calendar/gui/e-day-view-top-item.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'calendar/gui/e-day-view-top-item.c') diff --git a/calendar/gui/e-day-view-top-item.c b/calendar/gui/e-day-view-top-item.c index cf89ba06ba..7f2e8663af 100644 --- a/calendar/gui/e-day-view-top-item.c +++ b/calendar/gui/e-day-view-top-item.c @@ -30,6 +30,7 @@ #include #include #include +#include "e-util/e-categories-config.h" #include "e-day-view-top-item.h" static void e_day_view_top_item_class_init (EDayViewTopItemClass *class); @@ -577,9 +578,9 @@ e_day_view_top_item_draw_long_event (EDayViewTopItem *dvtitem, GdkBitmap *mask; category = (char *) elem->data; - /* FIXME: get icon for this category */ - pixmap = day_view->recurrence_icon; - mask = day_view->recurrence_mask; + e_categories_config_get_icon_for (category, &pixmap, &mask); + if (pixmap == NULL || mask == NULL) + continue; if (icon_x <= max_icon_x) { gdk_gc_set_clip_origin (gc, icon_x, icon_y); -- cgit