[gnome-settings-daemon] wacom: Add last-stylus property to GsdWacomDevice



commit 7743cb5a6771d44fd38fe7cf8d78e8f0bb2c02fa
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Dec 8 22:02:20 2011 +0000

    wacom: Add last-stylus property to GsdWacomDevice
    
    No implementation for the setting of the value though.

 plugins/wacom/gsd-wacom-device.c |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-device.c b/plugins/wacom/gsd-wacom-device.c
index 3c008bf..4d11e51 100644
--- a/plugins/wacom/gsd-wacom-device.c
+++ b/plugins/wacom/gsd-wacom-device.c
@@ -167,12 +167,14 @@ struct GsdWacomDevicePrivate
 	gboolean reversible;
 	gboolean is_screen_tablet;
 	GList *styli;
+	GsdWacomStylus *last_stylus;
 	GSettings *wacom_settings;
 };
 
 enum {
 	PROP_0,
-	PROP_GDK_DEVICE
+	PROP_GDK_DEVICE,
+	PROP_LAST_STYLUS
 };
 
 static void     gsd_wacom_device_class_init  (GsdWacomDeviceClass *klass);
@@ -338,6 +340,9 @@ gsd_wacom_device_set_property (GObject        *object,
 	case PROP_GDK_DEVICE:
 		device->priv->gdk_device = g_value_get_pointer (value);
 		break;
+	case PROP_LAST_STYLUS:
+		device->priv->last_stylus = g_value_get_pointer (value);
+		break;
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
                 break;
@@ -358,6 +363,9 @@ gsd_wacom_device_get_property (GObject        *object,
 	case PROP_GDK_DEVICE:
 		g_value_set_pointer (value, device->priv->gdk_device);
 		break;
+	case PROP_LAST_STYLUS:
+		g_value_set_pointer (value, device->priv->last_stylus);
+		break;
         default:
                 G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
                 break;
@@ -379,6 +387,9 @@ gsd_wacom_device_class_init (GsdWacomDeviceClass *klass)
 	g_object_class_install_property (object_class, PROP_GDK_DEVICE,
 					 g_param_spec_pointer ("gdk-device", "gdk-device", "gdk-device",
 							       G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
+	g_object_class_install_property (object_class, PROP_LAST_STYLUS,
+					 g_param_spec_pointer ("last-stylus", "last-stylus", "last-stylus",
+							       G_PARAM_READWRITE));
 }
 
 static void



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