aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2006-02-09 12:02:49 +0800
committerTor Lillqvist <tml@src.gnome.org>2006-02-09 12:02:49 +0800
commitafb9d6b1aba70b330a03507cb5e2e13e393bc4c5 (patch)
tree7a8e04544de6f3b81f082c4aaeb1b2d3162b30ac
parent60746e943c12983c34a9b1797167239728927984 (diff)
downloadgsoc2013-evolution-afb9d6b1aba70b330a03507cb5e2e13e393bc4c5.tar
gsoc2013-evolution-afb9d6b1aba70b330a03507cb5e2e13e393bc4c5.tar.gz
gsoc2013-evolution-afb9d6b1aba70b330a03507cb5e2e13e393bc4c5.tar.bz2
gsoc2013-evolution-afb9d6b1aba70b330a03507cb5e2e13e393bc4c5.tar.lz
gsoc2013-evolution-afb9d6b1aba70b330a03507cb5e2e13e393bc4c5.tar.xz
gsoc2013-evolution-afb9d6b1aba70b330a03507cb5e2e13e393bc4c5.tar.zst
gsoc2013-evolution-afb9d6b1aba70b330a03507cb5e2e13e393bc4c5.zip
Construct the pathname to the xml file at run-time to avoid using
2006-02-08 Tor Lillqvist <tml@novell.com> * 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
-rw-r--r--calendar/ChangeLog6
-rw-r--r--calendar/gui/dialogs/task-editor.c8
2 files changed, 13 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index e50801f77e..94bcd9a8eb 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,9 @@
+2006-02-08 Tor Lillqvist <tml@novell.com>
+
+ * 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.
+
2006-01-09 Kjartan Maraas <kmaraas@gnome.org>
* gui/alarm-notify/alarm-notify-dialog.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 <libgnome/gnome-i18n.h>
#include <e-util/e-icon-factory.h>
+#include <e-util/e-util-private.h>
#include <evolution-shell-component-utils.h>
#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 ();