summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2012-11-09 13:13:18 +0000
committerThomas Wood <thomas.wood@intel.com>2012-11-09 13:13:18 +0000
commit8a2d00f4369bf812f6e69b1272e1644e2a8ad716 (patch)
tree47882403bed5dd58552cbeae651d5431c3b80338
parent0b867665fabe3883174f5ac921f9db939538bd4f (diff)
downloadgnome-control-center-8a2d00f4369bf812f6e69b1272e1644e2a8ad716.tar.gz
info-panel: fix the hostname permission debug message
-rw-r--r--panels/info/cc-info-panel.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c
index 8f584434b..7f80d601b 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -1816,11 +1816,10 @@ info_panel_setup_hostname (CcInfoPanel *self,
entry = WID ("name_entry");
- if (g_permission_get_allowed (permission) != FALSE)
- {
- g_debug ("Not allowed to change the hostname");
- gtk_widget_set_sensitive (entry, TRUE);
- }
+ if (g_permission_get_allowed (permission))
+ gtk_widget_set_sensitive (entry, TRUE);
+ else
+ g_debug ("Not allowed to change the hostname");
self->priv->hostnamed_proxy = g_dbus_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM,
G_DBUS_PROXY_FLAGS_NONE,