[evolution] Bug #590707 - Initialize DBus threading on start
- From: Milan Crha <mcrha src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution] Bug #590707 - Initialize DBus threading on start
- Date: Thu, 10 Sep 2009 10:12:29 +0000 (UTC)
commit 3f00bdbfcb0bb2376c8b132744e3cdeacd9b3abe
Author: Milan Crha <mcrha redhat com>
Date: Thu Sep 10 12:12:36 2009 +0200
Bug #590707 - Initialize DBus threading on start
shell/main.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/shell/main.c b/shell/main.c
index eadb348..9f3070d 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -26,6 +26,8 @@
#include <gdk/gdkx.h> /* for copied UniqueApp code */
#include <glib/gstdio.h>
+#include <dbus/dbus-glib.h>
+
#ifdef G_OS_WIN32
#define WIN32_LEAN_AND_MEAN
#ifdef DATADIR
@@ -497,6 +499,10 @@ main (gint argc, gchar **argv)
exit (1);
}
+ g_type_init ();
+ g_thread_init (NULL);
+ dbus_g_thread_init ();
+
#ifdef G_OS_WIN32
if (strcmp (gettext (""), "") == 0) {
/* No message catalog installed for the current locale language,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]