aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r--calendar/gui/dialogs/event-editor.c19
1 files changed, 17 insertions, 2 deletions
diff --git a/calendar/gui/dialogs/event-editor.c b/calendar/gui/dialogs/event-editor.c
index 672e0aadb9..818b425a00 100644
--- a/calendar/gui/dialogs/event-editor.c
+++ b/calendar/gui/dialogs/event-editor.c
@@ -386,6 +386,11 @@ static BonoboUIVerb verbs [] = {
};
static EPixmap pixmaps[] = {
+ /* NOTE: If adding removing elements in this array, make sure
+ * the indexes of the two elements where the pathname to the
+ * icons is filled in at run-time in event_editor_init() are
+ * updated, too.
+ */
E_PIXMAP ("/Toolbar/ActionAlarm", "stock_alarm", E_ICON_SIZE_LARGE_TOOLBAR),
E_PIXMAP ("/menu/Options/ActionAlarm", "stock_alarm", E_ICON_SIZE_MENU),
E_PIXMAP ("/Toolbar/ActionAllDayEvent", "stock_new-24h-appointment", E_ICON_SIZE_LARGE_TOOLBAR),
@@ -393,8 +398,11 @@ static EPixmap pixmaps[] = {
E_PIXMAP ("/Toolbar/ActionRecurrence", "stock_task-recurring", E_ICON_SIZE_LARGE_TOOLBAR),
E_PIXMAP ("/menu/Options/ActionRecurrence", "stock_task-recurring", E_ICON_SIZE_MENU),
E_PIXMAP ("/commands/ActionRecurrence", "stock_task-recurring", E_ICON_SIZE_LARGE_TOOLBAR),
- E_PIXMAP ("/Toolbar/ActionFreeBusy", EVOLUTION_ICONSDIR"/query-free-busy.png", E_ICON_SIZE_LARGE_TOOLBAR),
- E_PIXMAP ("/menu/Options/ActionFreeBusy", EVOLUTION_ICONSDIR"/query-free-busy.png", E_ICON_SIZE_MENU),
+ /* These two will have an absolute path to the png file filled
+ * in at run-time, see event_editor_init().
+ */
+ E_PIXMAP ("/Toolbar/ActionFreeBusy", NULL, E_ICON_SIZE_LARGE_TOOLBAR),
+ E_PIXMAP ("/menu/Options/ActionFreeBusy", NULL, E_ICON_SIZE_MENU),
E_PIXMAP_END
};
@@ -516,6 +524,13 @@ event_editor_init (EventEditor *ee)
editor->uic, "ActionFreeBusy",
menu_action_freebusy_cb, editor);
+ /* NOTE: Make sure the 7 and 8 below correspond to the correct
+ * elements in the pixmaps array.
+ */
+ if (!pixmaps[7].name) {
+ pixmaps[7].name = g_build_filename (EVOLUTION_ICONSDIR, "query-free-busy.png", NULL);
+ pixmaps[8].name = g_build_filename (EVOLUTION_ICONSDIR, "query-free-busy.png", NULL);
+ }
e_pixmaps_update (editor->uic, pixmaps);
bonobo_ui_component_thaw (editor->uic, NULL);