[gnome-bluetooth] Fix dbus-glib warnings when testing the NM applet plugin



commit 8684476a6dadb9677187f35fbe307e1f3bd96c9d
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jun 23 19:56:36 2009 +0100

    Fix dbus-glib warnings when testing the NM applet plugin

 lib/test-plugins.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/lib/test-plugins.c b/lib/test-plugins.c
index b3b4f4f..ce4009b 100644
--- a/lib/test-plugins.c
+++ b/lib/test-plugins.c
@@ -1,14 +1,20 @@
 #include <gtk/gtk.h>
+#include <dbus/dbus-glib.h>
 #include "bluetooth-plugin-manager.h"
 
 int main (int argc, char **argv)
 {
 	GtkWidget *window, *vbox;
 	GList *list, *l;
+	DBusGConnection *bus;
 	const char *uuids[] = { "PANU", NULL};
 
 	gtk_init (&argc, &argv);
 
+	/* Init the dbus-glib types */
+	bus = dbus_g_bus_get (DBUS_BUS_SESSION, NULL);
+	dbus_g_connection_unref (bus);
+
 	bluetooth_plugin_manager_init ();
 
 	window = gtk_window_new (GTK_WINDOW_TOPLEVEL);



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