[gnome-control-center/wip/garnacho/wayland-tablet: 19/31] wacom: Add cc_wacom_tool_get_num_buttons()
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/garnacho/wayland-tablet: 19/31] wacom: Add cc_wacom_tool_get_num_buttons()
- Date: Fri, 24 Jun 2016 18:03:24 +0000 (UTC)
commit 3549dcb69f3676a715319536da2565435851ed0d
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Jun 23 16:50:23 2016 +0200
wacom: Add cc_wacom_tool_get_num_buttons()
Uses libwacom underneath.
panels/wacom/cc-wacom-device.c | 8 ++++++++
panels/wacom/cc-wacom-device.h | 3 +++
2 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/panels/wacom/cc-wacom-device.c b/panels/wacom/cc-wacom-device.c
index 3d91632..5371da7 100644
--- a/panels/wacom/cc-wacom-device.c
+++ b/panels/wacom/cc-wacom-device.c
@@ -366,3 +366,11 @@ cc_wacom_device_set_output (CcWacomDevice *device,
g_free (serial);
g_object_unref (settings);
}
+
+guint
+cc_wacom_device_get_num_buttons (CcWacomDevice *device)
+{
+ g_return_val_if_fail (CC_IS_WACOM_DEVICE (device), 0);
+
+ return libwacom_get_num_buttons (device->wdevice);
+}
diff --git a/panels/wacom/cc-wacom-device.h b/panels/wacom/cc-wacom-device.h
index e2f76a7..62bf656 100644
--- a/panels/wacom/cc-wacom-device.h
+++ b/panels/wacom/cc-wacom-device.h
@@ -57,4 +57,7 @@ GnomeRROutput * cc_wacom_device_get_output (CcWacomDevice *device,
void cc_wacom_device_set_output (CcWacomDevice *wacom_device,
GnomeRROutput *monitor);
+guint cc_wacom_device_get_num_buttons (CcWacomDevice *wacom_device);
+
+
#endif /* __CC_WACOM_DEVICE_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]