[gnome-settings-daemon] wacom: Remember the type of stylus



commit 234b00872008a9a17a687ec821de64c09a66479e
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Dec 14 18:25:23 2011 +0000

    wacom: Remember the type of stylus

 plugins/wacom/gsd-wacom-device.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-device.c b/plugins/wacom/gsd-wacom-device.c
index bcab49e..955bf82 100644
--- a/plugins/wacom/gsd-wacom-device.c
+++ b/plugins/wacom/gsd-wacom-device.c
@@ -49,6 +49,7 @@ struct GsdWacomStylusPrivate
 {
 	GsdWacomDevice *device;
 	int id;
+	WacomStylusType type;
 	char *name;
 	const char *icon_name;
 	GSettings *settings;
@@ -131,7 +132,8 @@ gsd_wacom_stylus_new (GsdWacomDevice    *device,
 	stylus->priv->id = libwacom_stylus_get_id (wstylus);
 	stylus->priv->name = g_strdup (libwacom_stylus_get_name (wstylus));
 	stylus->priv->settings = settings;
-	stylus->priv->icon_name = get_icon_name_from_type (libwacom_stylus_get_type (wstylus));
+	stylus->priv->type = libwacom_stylus_get_type (wstylus);
+	stylus->priv->icon_name = get_icon_name_from_type (stylus->priv->type);
 
 	return stylus;
 }



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