[gnome-settings-daemon] wacom: Fix setting the default area for the cursor



commit 8019ae6363c58fdf1b87e17e3173044bedec2cd9
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Nov 23 19:16:08 2011 +0000

    wacom: Fix setting the default area for the cursor

 plugins/wacom/gsd-wacom-manager.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-manager.c b/plugins/wacom/gsd-wacom-manager.c
index eb55f26..1ef0a3a 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -310,11 +310,15 @@ set_wacom_settings (GsdWacomManager *manager,
         type = gsd_wacom_device_get_device_type (device);
 
 	if (type == WACOM_TYPE_CURSOR) {
-		GVariant *variant;
+		GVariant *values[4], *variant;
+		guint i;
 
 		set_absolute (device, FALSE);
 
-		variant = g_variant_new ("ai", "[-1, -1, -1, -1]");
+		for (i = 0; i < G_N_ELEMENTS (values); i++)
+			values[i] = g_variant_new_int32 (-1);
+
+		variant = g_variant_new_array (G_VARIANT_TYPE_INT32, values, G_N_ELEMENTS (values));
 		set_area (device, variant);
 		g_variant_unref (variant);
 		return;



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