aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/cal-prefs-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/dialogs/cal-prefs-dialog.c')
-rw-r--r--calendar/gui/dialogs/cal-prefs-dialog.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/calendar/gui/dialogs/cal-prefs-dialog.c b/calendar/gui/dialogs/cal-prefs-dialog.c
index 94eae52a37..7a2222a9bd 100644
--- a/calendar/gui/dialogs/cal-prefs-dialog.c
+++ b/calendar/gui/dialogs/cal-prefs-dialog.c
@@ -47,6 +47,7 @@
#include <libgnomeui/gnome-color-picker.h>
#include <glade/glade.h>
#include <e-util/e-dialog-widgets.h>
+#include <e-util/e-util-private.h>
#include <misc/e-dateedit.h>
@@ -104,12 +105,18 @@ cal_prefs_dialog_new (void)
{
DialogData *dialog_data;
EvolutionConfigControl *config_control;
+ char *gladefile;
dialog_data = g_new0 (DialogData, 1);
/* Load the content widgets */
- dialog_data->xml = glade_xml_new (EVOLUTION_GLADEDIR "/cal-prefs-dialog.glade", NULL, NULL);
+ gladefile = g_build_filename (EVOLUTION_GLADEDIR,
+ "cal-prefs-dialog.glade",
+ NULL);
+ dialog_data->xml = glade_xml_new (gladefile, NULL, NULL);
+ g_free (gladefile);
+
if (!dialog_data->xml) {
g_message ("cal_prefs_dialog_construct(): Could not load the Glade XML file!");
return NULL;