From 2f1a024be76933ba28ab80e76a52ff46358e33dd Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sun, 18 Dec 2005 04:45:01 +0000 Subject: Use gstdio wrappers. Construct pathnames of glade files at run-time. 2005-12-18 Tor Lillqvist * em-filter-editor.c: Use gstdio wrappers. Construct pathnames of glade files at run-time. svn path=/trunk/; revision=30853 --- mail/ChangeLog | 3 ++- mail/em-filter-editor.c | 10 +++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 9a7c08d97e..de99445184 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -3,7 +3,8 @@ * Makefile.am: Use THREADS_CFLAGS and _LIBS. Don't need CAMEL_LIBS. * em-account-editor.c - * em-account-prefs.c: Use gstdio wrappers. Construct pathnames of + * em-account-prefs.c + * em-filter-editor.c: Use gstdio wrappers. Construct pathnames of glade files at run-time. 2005-12-17 Tor Lillqvist diff --git a/mail/em-filter-editor.c b/mail/em-filter-editor.c index 32f7ff1a48..49837c775f 100644 --- a/mail/em-filter-editor.c +++ b/mail/em-filter-editor.c @@ -28,6 +28,8 @@ #include #include +#include "e-util/e-util-private.h" + #include "em-filter-editor.h" #include "em-filter-rule.h" @@ -105,8 +107,14 @@ em_filter_editor_new (EMFilterContext *fc, const EMFilterSource *source_names) { EMFilterEditor *fe = (EMFilterEditor *) g_object_new (em_filter_editor_get_type(), NULL); GladeXML *gui; + char *gladefile; + + gladefile = g_build_filename (EVOLUTION_GLADEDIR, + "filter.glade", + NULL); + gui = glade_xml_new (gladefile, "rule_editor", NULL); + g_free (gladefile); - gui = glade_xml_new (EVOLUTION_GLADEDIR "/filter.glade", "rule_editor", NULL); em_filter_editor_construct (fe, fc, gui, source_names); g_object_unref (gui); -- cgit