[gnome-settings-daemon] wacom: Update for libwacom API changes
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] wacom: Update for libwacom API changes
- Date: Fri, 9 Dec 2011 16:17:05 +0000 (UTC)
commit 6e60dafd2802639b085a9ba1f4231c70a1aa532d
Author: Bastien Nocera <hadess hadess net>
Date: Fri Dec 9 16:16:05 2011 +0000
wacom: Update for libwacom API changes
plugins/wacom/gsd-wacom-device.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-device.c b/plugins/wacom/gsd-wacom-device.c
index 0de44de..87b20a7 100644
--- a/plugins/wacom/gsd-wacom-device.c
+++ b/plugins/wacom/gsd-wacom-device.c
@@ -38,6 +38,8 @@
#define GSD_WACOM_STYLUS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GSD_TYPE_WACOM_STYLUS, GsdWacomStylusPrivate))
+static WacomDeviceDatabase *db = NULL;
+
struct GsdWacomStylusPrivate
{
GsdWacomDevice *device;
@@ -307,7 +309,10 @@ gsd_wacom_device_constructor (GType type,
goto end;
}
- wacom_device = libwacom_new_from_path (path, FALSE, NULL);
+ if (db == NULL)
+ db = libwacom_database_new ();
+
+ wacom_device = libwacom_new_from_path (db, path, FALSE, NULL);
if (!wacom_device) {
WacomError *wacom_error;
@@ -316,7 +321,7 @@ gsd_wacom_device_constructor (GType type,
path);
wacom_error = libwacom_error_new ();
- wacom_device = libwacom_new_from_path (path, TRUE, wacom_error);
+ wacom_device = libwacom_new_from_path (db, path, TRUE, wacom_error);
if (wacom_device == NULL) {
g_warning ("Failed to create fallback wacom device for '%s': %s (%d)",
path,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]