[gnome-settings-daemon] wacom: The index for buttons starts at 1, not zero
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] wacom: The index for buttons starts at 1, not zero
- Date: Mon, 27 Feb 2012 18:55:10 +0000 (UTC)
commit eec974481a55b2f8dcdcf84ada1e2bec1d8f9557
Author: Bastien Nocera <hadess hadess net>
Date: Mon Feb 27 18:50:33 2012 +0000
wacom: The index for buttons starts at 1, not zero
We start at "mode 1" like the descriptions.
plugins/wacom/gsd-wacom-device.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-device.c b/plugins/wacom/gsd-wacom-device.c
index 654f279..0f0ae0b 100644
--- a/plugins/wacom/gsd-wacom-device.c
+++ b/plugins/wacom/gsd-wacom-device.c
@@ -1590,7 +1590,7 @@ find_button_with_index (GsdWacomDevice *device,
GsdWacomTabletButton *button;
char *str;
- str = g_strdup_printf ("%s-mode-%d", id, index + 1);
+ str = g_strdup_printf ("%s-mode-%d", id, index);
button = find_button_with_id (device, str);
g_free (str);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]