[gnome-settings-daemon] wacom: Add hack to valgrind test-wacom



commit fafc000f8939cc83592125ece89eea5bb9b795d7
Author: Bastien Nocera <hadess hadess net>
Date:   Fri May 25 13:55:48 2012 +0100

    wacom: Add hack to valgrind test-wacom

 plugins/wacom/gsd-wacom-manager.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-manager.c b/plugins/wacom/gsd-wacom-manager.c
index 14a306b..6eb5ad4 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -714,6 +714,13 @@ device_removed_cb (GdkDeviceManager *device_manager,
 	g_debug ("Removing device '%s' from known devices list",
 		 gdk_device_get_name (gdk_device));
 	g_hash_table_remove (manager->priv->devices, gdk_device);
+
+	/* Enable this chunk of code if you want to valgrind
+	 * test-wacom. It will exit when there are no Wacom devices left */
+#if 0
+	if (g_hash_table_size (manager->priv->devices) == 0)
+		gtk_main_quit ();
+#endif
 }
 
 static GsdWacomDevice *



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