From a2905483c8c14bf88b76f945134d90347a6a07b9 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 8 May 2008 04:27:53 +0000 Subject: Include e-util-private.h for the mapping of EVOLUTION_GLADEDIR to a 2008-05-08 Tor Lillqvist * gui/alarm-notify/alarm-notify-dialog.c: Include e-util-private.h for the mapping of EVOLUTION_GLADEDIR to a function call on Windows. Construct the glade file pathname at run-time so that it is found also on Windows where we don't use compile-time pathnames at run-time. svn path=/trunk/; revision=35482 --- calendar/gui/alarm-notify/alarm-notify-dialog.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/alarm-notify/alarm-notify-dialog.c b/calendar/gui/alarm-notify/alarm-notify-dialog.c index 982b859547..74583a8f7b 100644 --- a/calendar/gui/alarm-notify/alarm-notify-dialog.c +++ b/calendar/gui/alarm-notify/alarm-notify-dialog.c @@ -43,7 +43,8 @@ #include "alarm-notify-dialog.h" #include "config-data.h" #include "util.h" -#include +#include "e-util/e-icon-factory.h" +#include "e-util/e-util-private.h" @@ -242,7 +243,13 @@ notified_alarms_dialog_new (void) G_TYPE_POINTER /* FuncInfo*/)); - an->xml = glade_xml_new (EVOLUTION_GLADEDIR "/alarm-notify.glade", NULL, NULL); + char *gladefile; + + gladefile = g_build_filename (EVOLUTION_GLADEDIR, + "alarm-notify.glade", + NULL); + an->xml = glade_xml_new (gladefile, NULL, NULL); + g_free (gladefile); if (!an->xml) { g_message ("alarm_notify_dialog(): Could not load the Glade XML file!"); g_free (an); -- cgit v1.2.3