summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2009-06-17 21:00:53 -0400
committerDavid Zeuthen <davidz@redhat.com>2009-06-17 21:00:53 -0400
commitfeb94f648b9c3cd827e8cfb8d65a51587d905381 (patch)
tree2bc4cc6033a45876182b7c040940f3e3ed40bbbf
parent433ee3fe61471604e7997183737f6e57474e31aa (diff)
Update xdg-hostname-1 to only use the :can-set property
-rw-r--r--src/programs/xdg-hostname.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/programs/xdg-hostname.c b/src/programs/xdg-hostname.c
index 4412522..893c0d0 100644
--- a/src/programs/xdg-hostname.c
+++ b/src/programs/xdg-hostname.c
@@ -59,10 +59,7 @@ show_hostname_data (XdgHostnameMonitor *h)
char *transient_display_hostname;
char *transient_hostname;
char *transient_icon_name;
- gboolean can_set_display_hostname;
- gboolean can_set_hostname;
- gboolean can_set_icon_name;
- gboolean can_set_use_transient_data;
+ gboolean can_set_data;
g_object_get (h,
"display-hostname", &display_hostname,
@@ -75,10 +72,7 @@ show_hostname_data (XdgHostnameMonitor *h)
"transient-display-hostname", &transient_display_hostname,
"transient-hostname", &transient_hostname,
"transient-icon-name", &transient_icon_name,
- "can-set-display-hostname", &can_set_display_hostname,
- "can-set-hostname", &can_set_hostname,
- "can-set-icon-name", &can_set_icon_name,
- "can-set-use-transient-data", &can_set_use_transient_data,
+ "can-set-data", &can_set_data,
NULL);
g_print ("display-hostname: %s\n", display_hostname);
@@ -91,10 +85,7 @@ show_hostname_data (XdgHostnameMonitor *h)
g_print ("transient-hostname: %s\n", transient_hostname);
g_print ("transient-display-hostname: %s\n", transient_display_hostname);
g_print ("transient-icon-name: %s\n", transient_icon_name);
- g_print ("can-set-display-hostname: %s\n", can_set_display_hostname ? "true" : "false");
- g_print ("can-set-hostname: %s\n", can_set_hostname ? "true" : "false");
- g_print ("can-set-icon-name: %s\n", can_set_icon_name ? "true" : "false");
- g_print ("can-set-use-transient-data: %s\n", can_set_use_transient_data ? "true" : "false");
+ g_print ("can-set-data: %s\n", can_set_data ? "true" : "false");
g_free (display_hostname);
g_free (hostname);