From 562c2c4c630683d1ec5b9b5958525e6509a56eb2 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sat, 26 Nov 2005 01:32:18 +0000 Subject: Include e-util-private,h to get redefinition of EVOLUTION_UIDIR (as a call 2005-11-25 Tor Lillqvist * gui/component/addressbook-view.c (control_activate): Include e-util-private,h to get redefinition of EVOLUTION_UIDIR (as a call to a function) on Windows. Construct the path of the xml file at run-time to enable install-anywhere on Windows. svn path=/trunk/; revision=30677 --- addressbook/gui/component/addressbook-view.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'addressbook/gui') diff --git a/addressbook/gui/component/addressbook-view.c b/addressbook/gui/component/addressbook-view.c index 564c659d05..7a88888039 100644 --- a/addressbook/gui/component/addressbook-view.c +++ b/addressbook/gui/component/addressbook-view.c @@ -48,6 +48,7 @@ #include "e-util/e-icon-factory.h" +#include "e-util/e-util-private.h" #include "shell/e-user-creatable-items-handler.h" #include "evolution-shell-component-utils.h" @@ -438,6 +439,7 @@ control_activate (BonoboControl *control, AddressbookViewPrivate *priv = view->priv; Bonobo_UIContainer remote_ui_container; EABView *v = get_current_view (view); + char *xmlfile; remote_ui_container = bonobo_control_get_remote_ui_container (control, NULL); bonobo_ui_component_set_container (uic, remote_ui_container, NULL); @@ -448,9 +450,13 @@ control_activate (BonoboControl *control, bonobo_ui_component_freeze (uic, NULL); + xmlfile = g_build_filename (EVOLUTION_UIDIR, + "evolution-addressbook.xml", + NULL); bonobo_ui_util_set_ui (uic, PREFIX, - EVOLUTION_UIDIR "/evolution-addressbook.xml", + xmlfile, "evolution-addressbook", NULL); + g_free (xmlfile); if (v) eab_view_setup_menus (v, uic); -- cgit v1.2.3