[gnome-control-center] info-panel: fix the hostname permission debug message



commit 8a2d00f4369bf812f6e69b1272e1644e2a8ad716
Author: Thomas Wood <thomas wood intel com>
Date:   Fri Nov 9 13:13:18 2012 +0000

    info-panel: fix the hostname permission debug message

 panels/info/cc-info-panel.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c
index 8f58443..7f80d60 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,



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