[Telepathy-commits] [telepathy-gabble/master] write-mgr-file; properly init D-Bus types

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Thu Mar 26 09:45:18 PDT 2009


---
 src/write-mgr-file.c |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/write-mgr-file.c b/src/write-mgr-file.c
index e4c8ab9..2bfc2d2 100644
--- a/src/write-mgr-file.c
+++ b/src/write-mgr-file.c
@@ -89,11 +89,15 @@ int
 main (void)
 {
   GError *error = NULL;
+  gchar *s;
+
+  g_type_init ();
+  dbus_g_type_specialized_init ();
+
+  s = mgr_file_contents (TP_CM_BUS_NAME_BASE "gabble",
+      TP_CM_OBJECT_PATH_BASE "gabble",
+      gabble_connection_manager_get_protocols (), &error);
 
-  gchar *s = mgr_file_contents (TP_CM_BUS_NAME_BASE "gabble",
-                               TP_CM_OBJECT_PATH_BASE "gabble",
-                               gabble_connection_manager_get_protocols (),
-                               &error);
   if (!s)
     {
       fprintf (stderr, "%s", error->message);
-- 
1.5.6.5




More information about the telepathy-commits mailing list