[gnome-settings-daemon] wacom: Print index for mode buttons



commit 16b961084466bffd8d7a106256084bb4b26d07e5
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Feb 23 14:27:11 2012 +0100

    wacom: Print index for mode buttons

 plugins/wacom/list-wacom.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/plugins/wacom/list-wacom.c b/plugins/wacom/list-wacom.c
index 861561f..2008906 100644
--- a/plugins/wacom/list-wacom.c
+++ b/plugins/wacom/list-wacom.c
@@ -143,8 +143,13 @@ print_buttons (GsdWacomDevice *device)
 
 		g_print ("\tButton: %s (%s)\n", button->name, button->id);
 		g_print ("\t\tType: %s\n", button_type_to_string (button->type));
-		if (button->group_id > 0)
-			g_print ("\t\tGroup: %d\n", button->group_id);
+		if (button->group_id > 0) {
+			g_print ("\t\tGroup: %d", button->group_id);
+			if (button->idx >= 0)
+				g_print (" Index: %d\n", button->idx);
+			else
+				g_print ("\n");
+		}
 		if (button->settings) {
 			char *loc;
 			loc = get_loc (button->settings);



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