[gnome-settings-daemon] wacom: Add debug mode to list-wacom
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] wacom: Add debug mode to list-wacom
- Date: Wed, 25 Jan 2012 17:10:39 +0000 (UTC)
commit d1c53bcc2dd32e3c6c0baa2ac7b88cc2b3c0b01b
Author: Bastien Nocera <hadess hadess net>
Date: Wed Jan 25 13:12:25 2012 +0000
wacom: Add debug mode to list-wacom
plugins/wacom/list-wacom.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/plugins/wacom/list-wacom.c b/plugins/wacom/list-wacom.c
index 1522742..5920674 100644
--- a/plugins/wacom/list-wacom.c
+++ b/plugins/wacom/list-wacom.c
@@ -27,6 +27,7 @@
static gboolean fake_devices = FALSE;
static gboolean monitor_styli = FALSE;
+static gboolean option_debug = FALSE;
static char *
get_loc (GSettings *settings)
@@ -226,6 +227,7 @@ int main (int argc, char **argv)
const GOptionEntry entries[] = {
{ "fake", 'f', 0, G_OPTION_ARG_NONE, &fake_devices, "Output fake devices", NULL },
{ "monitor", 'm', 0, G_OPTION_ARG_NONE, &monitor_styli, "Monitor changing styli", NULL },
+ { "debug", 'd', 0, G_OPTION_ARG_NONE, &option_debug, "Debug output", NULL },
{ NULL }
};
@@ -239,6 +241,9 @@ int main (int argc, char **argv)
return 1;
}
+ if (option_debug)
+ g_setenv ("G_MESSAGES_DEBUG", "all", TRUE);
+
if (fake_devices == FALSE)
list_actual_devices ();
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]