diff options
author | Tor Lillqvist <tml@novell.com> | 2006-04-27 20:18:34 +0800 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2006-04-27 20:18:34 +0800 |
commit | e3e04c94352282f43d26513f4720b7c8ad96ad2a (patch) | |
tree | 0e700b23fe9d3f391a5eb894067b887835c16be1 /calendar/gui/dialogs | |
parent | dace8f4623d5439b900ecc2059b53675ec0f5ff4 (diff) | |
download | gsoc2013-evolution-e3e04c94352282f43d26513f4720b7c8ad96ad2a.tar gsoc2013-evolution-e3e04c94352282f43d26513f4720b7c8ad96ad2a.tar.gz gsoc2013-evolution-e3e04c94352282f43d26513f4720b7c8ad96ad2a.tar.bz2 gsoc2013-evolution-e3e04c94352282f43d26513f4720b7c8ad96ad2a.tar.lz gsoc2013-evolution-e3e04c94352282f43d26513f4720b7c8ad96ad2a.tar.xz gsoc2013-evolution-e3e04c94352282f43d26513f4720b7c8ad96ad2a.tar.zst gsoc2013-evolution-e3e04c94352282f43d26513f4720b7c8ad96ad2a.zip |
Fix crash: Should use a GdkColor struct as such here, not a pointer.
2006-04-27 Tor Lillqvist <tml@novell.com>
* gui/e-day-view-main-item.c
(e_day_view_main_item_draw_long_events_in_vbars): Fix crash:
Should use a GdkColor struct as such here, not a pointer.
* gui/dialogs/event-editor.c (event_editor_init): Construct
pathname to query-free-busy.png at run-time. Fixes Win32 build
broken by the fix for #321832 below.
svn path=/trunk/; revision=31917
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r-- | calendar/gui/dialogs/event-editor.c | 19 |
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); |