From cc8628aa9e4c8da853422a0e49f751b18c1e4ed2 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sun, 18 Dec 2005 04:43:33 +0000 Subject: Use gstdio wrappers. Construct pathnames of glade files at run-time. 2005-12-18 Tor Lillqvist * em-account-prefs.c: Use gstdio wrappers. Construct pathnames of glade files at run-time. svn path=/trunk/; revision=30852 --- mail/ChangeLog | 3 ++- mail/em-account-prefs.c | 9 ++++++++- 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 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 */ -- cgit v1.2.3