[gnome-settings-daemon] wacom: Add more FIXMEs for some button types
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] wacom: Add more FIXMEs for some button types
- Date: Tue, 14 Feb 2012 20:13:54 +0000 (UTC)
commit dfd73d6c2201b2a02ed01d35af8f483c73c06736
Author: Bastien Nocera <hadess hadess net>
Date: Tue Feb 14 20:10:47 2012 +0000
wacom: Add more FIXMEs for some button types
plugins/wacom/gsd-wacom-manager.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-manager.c b/plugins/wacom/gsd-wacom-manager.c
index 203dfb9..3ac08f8 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -59,6 +59,7 @@
/* Button settings */
#define KEY_ACTION_TYPE "action-type"
+#define KEY_CUSTOM_ACTION "custom-action"
/* See "Wacom Pressure Threshold" */
#define DEFAULT_PRESSURE_THRESHOLD 27
@@ -695,6 +696,15 @@ filter_button_events (XEvent *xevent,
gsd_wacom_device_get_name (device),
deviceid);
+ /* FIXME, don't know how to handle those yet */
+ if (wbutton->type == WACOM_TABLET_BUTTON_TYPE_ELEVATOR)
+ return GDK_FILTER_REMOVE;
+
+ /* FIXME, we need to switch mode here */
+ if (wbutton->type == WACOM_TABLET_BUTTON_TYPE_HARDCODED)
+ return GDK_FILTER_REMOVE;
+
+ /* Nothing to do */
if (g_settings_get_enum (wbutton->settings, KEY_ACTION_TYPE) == GSD_WACOM_ACTION_TYPE_NONE)
return GDK_FILTER_REMOVE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]