[evolution] Call e_gdbus_templates_init_main_thread() in main()



commit 67942d5a17374287bccb4914541e4aeef8c3c85c
Author: Milan Crha <mcrha redhat com>
Date:   Mon Nov 7 10:26:36 2011 +0100

    Call e_gdbus_templates_init_main_thread() in main()

 calendar/gui/alarm-notify/notify-main.c |    4 ++++
 shell/main.c                            |    3 +++
 2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/calendar/gui/alarm-notify/notify-main.c b/calendar/gui/alarm-notify/notify-main.c
index b1775d8..a6d9d53 100644
--- a/calendar/gui/alarm-notify/notify-main.c
+++ b/calendar/gui/alarm-notify/notify-main.c
@@ -30,6 +30,8 @@
 #include <stdlib.h>
 #include <glib/gi18n.h>
 
+#include <libedataserver/e-gdbus-templates.h>
+
 #include "alarm-notify.h"
 
 #ifdef G_OS_WIN32
@@ -82,6 +84,8 @@ main (gint argc,
 
 	gtk_init (&argc, &argv);
 
+	e_gdbus_templates_init_main_thread ();
+
 #ifdef G_OS_WIN32
 	path = g_build_path (";", _e_get_bindir (), g_getenv ("PATH"), NULL);
 
diff --git a/shell/main.c b/shell/main.c
index 4599b41..6da0745 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -59,6 +59,7 @@
 #include <libxml/tree.h>
 
 #include <libedataserver/e-categories.h>
+#include <libedataserver/e-gdbus-templates.h>
 #include <libedataserverui/e-passwords.h>
 
 #include "e-shell.h"
@@ -524,6 +525,8 @@ main (gint argc,
 	ical_set_unknown_token_handling_setting (ICAL_DISCARD_TOKEN);
 #endif
 
+	e_gdbus_templates_init_main_thread ();
+
 #ifdef G_OS_WIN32
 	path = g_build_path (";", _e_get_bindir (), g_getenv ("PATH"), NULL);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]