[gnome-settings-daemon] wacom: Implement "none" action-type



commit f5f957ff982bbe693b4b9c50171778f9807ee4b0
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Feb 13 18:27:33 2012 +0000

    wacom: Implement "none" action-type
    
    That was hard...

 plugins/wacom/gsd-wacom-manager.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-manager.c b/plugins/wacom/gsd-wacom-manager.c
index 61751a5..e02a2e0 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -57,6 +57,9 @@
 #define KEY_PRESSURETHRESHOLD   "pressurethreshold"
 #define KEY_PRESSURECURVE       "pressurecurve"
 
+/* Button settings */
+#define KEY_ACTION_TYPE         "action-type"
+
 /* See "Wacom Pressure Threshold" */
 #define DEFAULT_PRESSURE_THRESHOLD 27
 
@@ -691,7 +694,10 @@ filter_button_events (XEvent          *xevent,
 		   gsd_wacom_device_get_name (device),
 		   deviceid);
 
-	/* FIXME implement */
+	if (g_settings_get_enum (wbutton->settings, KEY_ACTION_TYPE) == GSD_WACOM_ACTION_TYPE_NONE)
+		return GDK_FILTER_REMOVE;
+
+	/* FIXME implement custom action type */
 
 	return GDK_FILTER_REMOVE;
 }



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