gnome-bluetooth r426 - trunk/properties



Author: hadess
Date: Tue Mar  3 00:35:51 2009
New Revision: 426
URL: http://svn.gnome.org/viewvc/gnome-bluetooth?rev=426&view=rev

Log:
Document the timeout (now idle) call

When adapters are added, the row will be inserted before
the signal is connected. We can remove that when dbus-glib
stops sucking, and we don't have to run
dbus_g_proxy_add_signal()



Modified:
   trunk/properties/adapter.c

Modified: trunk/properties/adapter.c
==============================================================================
--- trunk/properties/adapter.c	(original)
+++ trunk/properties/adapter.c	Tue Mar  3 00:35:51 2009
@@ -719,7 +719,10 @@
 	if (adapter == NULL)
 		return;
 
-	g_timeout_add(250, adapter_create, adapter);
+	/* XXX This is needed so that we can run dbus_g_proxy_add_signal()
+	 * for "PropertyChanged" on the adapter, remove when we have some
+	 * decent D-Bus bindings */
+	g_idle_add(adapter_create, adapter);
 }
 
 static void adapter_removed(GtkTreeModel *model, GtkTreePath *path,



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