aboutsummaryrefslogtreecommitdiffstats
path: root/smime/gui/cert-trust-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'smime/gui/cert-trust-dialog.c')
-rw-r--r--smime/gui/cert-trust-dialog.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/smime/gui/cert-trust-dialog.c b/smime/gui/cert-trust-dialog.c
index b36d99ff53..13c02e76b2 100644
--- a/smime/gui/cert-trust-dialog.c
+++ b/smime/gui/cert-trust-dialog.c
@@ -39,6 +39,8 @@
#include <libgnome/gnome-i18n.h>
#include <glade/glade.h>
+#include "e-util/e-util-private.h"
+
#define GLADE_FILE_NAME "smime-ui.glade"
typedef struct {
@@ -116,9 +118,15 @@ cert_trust_dialog_show (ECert *cert)
{
CertTrustDialogData *ctd_data;
CERTCertificate *icert;
+ char *gladefile;
ctd_data = g_new0 (CertTrustDialogData, 1);
- ctd_data->gui = glade_xml_new (EVOLUTION_GLADEDIR "/" GLADE_FILE_NAME, NULL, NULL);
+
+ gladefile = g_build_filename (EVOLUTION_GLADEDIR,
+ GLADE_FILE_NAME,
+ NULL);
+ ctd_data->gui = glade_xml_new (gladefile, NULL, NULL);
+ g_free (gladefile);
ctd_data->dialog = glade_xml_get_widget (ctd_data->gui, "cert-trust-dialog");
ctd_data->cert = g_object_ref (cert);