aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/em-account-prefs.c9
2 files changed, 10 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 08c56acd4a..9a7c08d97e 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -2,7 +2,8 @@
* Makefile.am: Use THREADS_CFLAGS and _LIBS. Don't need CAMEL_LIBS.
- * em-account-editor.c: Use gstdio wrappers. Construct pathnames of
+ * em-account-editor.c
+ * em-account-prefs.c: Use gstdio wrappers. Construct pathnames of
glade files at run-time.
2005-12-17 Tor Lillqvist <tml@novell.com>
diff --git a/mail/em-account-prefs.c b/mail/em-account-prefs.c
index a3c2256525..0f9f37e7ee 100644
--- a/mail/em-account-prefs.c
+++ b/mail/em-account-prefs.c
@@ -42,6 +42,7 @@
#include "e-util/e-account-list.h"
#include "e-util/e-error.h"
+#include "e-util/e-util-private.h"
#include "em-account-prefs.h"
@@ -537,8 +538,14 @@ em_account_prefs_construct (EMAccountPrefs *prefs)
GtkWidget *toplevel, *widget;
GtkCellRenderer *renderer;
GladeXML *gui;
+ char *gladefile;
- gui = glade_xml_new (EVOLUTION_GLADEDIR "/mail-config.glade", "accounts_tab", NULL);
+ gladefile = g_build_filename (EVOLUTION_GLADEDIR,
+ "mail-config.glade",
+ NULL);
+ gui = glade_xml_new (gladefile, "accounts_tab", NULL);
+ g_free (gladefile);
+
prefs->gui = gui;
/* get our toplevel widget */