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/em-account-prefs.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'mail/em-account-prefs.c') 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