wacom: Add cc_wacom_tool_get_num_buttons()
Uses libwacom underneath.
This commit is contained in:
parent
d118070a73
commit
8122e43b31
2 changed files with 11 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue