From afb9d6b1aba70b330a03507cb5e2e13e393bc4c5 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 9 Feb 2006 04:02:49 +0000 Subject: Construct the pathname to the xml file at run-time to avoid using 2006-02-08 Tor Lillqvist * gui/dialogs/task-editor.c (task_editor_init): Construct the pathname to the xml file at run-time to avoid using compile-time paths on Windows. svn path=/trunk/; revision=31456 --- calendar/gui/dialogs/task-editor.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'calendar/gui/dialogs/task-editor.c') diff --git a/calendar/gui/dialogs/task-editor.c b/calendar/gui/dialogs/task-editor.c index 32984a64b0..fab1a18351 100644 --- a/calendar/gui/dialogs/task-editor.c +++ b/calendar/gui/dialogs/task-editor.c @@ -32,6 +32,7 @@ #include #include +#include #include #include "task-page.h" @@ -309,6 +310,7 @@ task_editor_init (TaskEditor *te) TaskEditorPrivate *priv; CompEditor *editor = COMP_EDITOR(te); gboolean status; + char *xmlfile; priv = g_new0 (TaskEditorPrivate, 1); te->priv = priv; @@ -322,9 +324,13 @@ task_editor_init (TaskEditor *te) bonobo_ui_component_add_verb_list_with_data (editor->uic, verbs, te); + xmlfile = g_build_filename (EVOLUTION_UIDIR, + "evolution-task-editor.xml", + NULL); bonobo_ui_util_set_ui (editor->uic, PREFIX, - EVOLUTION_UIDIR "/evolution-task-editor.xml", + xmlfile, "evolution-task-editor", NULL); + g_free (xmlfile); /* Show hide the status fields */ status = calendar_config_get_show_status (); -- cgit v1.2.3