[gnome-settings-daemon] wacom: Show whether buttons have (O)LEDs in debug tool
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] wacom: Show whether buttons have (O)LEDs in debug tool
- Date: Fri, 4 Oct 2013 11:40:20 +0000 (UTC)
commit d8096ba76ef12f357c5cd5a58e9e7175edf668c9
Author: Bastien Nocera <hadess hadess net>
Date: Fri Oct 4 13:38:17 2013 +0200
wacom: Show whether buttons have (O)LEDs in debug tool
plugins/wacom/list-wacom.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/wacom/list-wacom.c b/plugins/wacom/list-wacom.c
index 0c1672d..a19249a 100644
--- a/plugins/wacom/list-wacom.c
+++ b/plugins/wacom/list-wacom.c
@@ -142,6 +142,7 @@ print_buttons (GsdWacomDevice *device)
for (l = buttons; l != NULL; l = l->next) {
GsdWacomTabletButton *button = l->data;
+ gboolean has_led;
g_print ("\tButton: %s (%s)\n", button->name, button->id);
g_print ("\t\tType: %s\n", button_type_to_string (button->type));
@@ -152,6 +153,9 @@ print_buttons (GsdWacomDevice *device)
else
g_print ("\n");
}
+ has_led = (button->type == WACOM_TABLET_BUTTON_TYPE_HARDCODED && button->status_led !=
GSD_WACOM_NO_LED);
+ if (has_led || button->has_oled)
+ g_print ("\t\tHas LED: %s Has OLED: %s\n", BOOL_AS_STR(has_led),
BOOL_AS_STR(button->has_oled));
if (button->settings) {
char *loc;
loc = get_loc (button->settings);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]