[gnome-bluetooth] input: Add debug version



commit dd131150d00a9066036cb0dc904aa3c7bbf991ff
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Oct 30 19:08:36 2013 +0100

    input: Add debug version

 wizard/bluetooth-input.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/wizard/bluetooth-input.c b/wizard/bluetooth-input.c
index 5e78372..f543de4 100644
--- a/wizard/bluetooth-input.c
+++ b/wizard/bluetooth-input.c
@@ -29,6 +29,8 @@
 
 #include "bluetooth-input.h"
 
+#undef FAKE_RUN
+
 enum {
        KEYBOARD_APPEARED,
        KEYBOARD_DISAPPEARED,
@@ -93,6 +95,7 @@ bluetooth_input_check_for_devices (BluetoothInput *input)
                GdkDevice *device = l->data;
                GdkInputSource source;
 
+#ifndef FAKE_RUN
                if (bluetooth_input_ignore_device (gdk_device_get_name (device)) != FALSE)
                        continue;
                source = gdk_device_get_source (device);
@@ -103,6 +106,13 @@ bluetooth_input_check_for_devices (BluetoothInput *input)
                        g_debug ("has mouse: %s", gdk_device_get_name (device));
                        has_mouse = TRUE;
                }
+#else
+               /* No mouse, unless my Bluetooth mouse is there */
+               has_keyboard = TRUE;
+
+               if (g_str_equal ("hadess’s mouse", gdk_device_get_name (device)))
+                       has_mouse = TRUE;
+#endif
 
                if (has_mouse && has_keyboard)
                        break;


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