[gnome-control-center/wip/wireless-list] Fix an alignment problem in the wireless list



commit 6d1503a71c4aeb751bc1fb5450c231d564014d43
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jul 5 06:22:13 2012 -0400

    Fix an alignment problem in the wireless list

 panels/network/panel-cell-renderer-security.c |    4 +---
 panels/network/panel-cell-renderer-signal.c   |    2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/panels/network/panel-cell-renderer-security.c b/panels/network/panel-cell-renderer-security.c
index debce36..a964bcf 100644
--- a/panels/network/panel-cell-renderer-security.c
+++ b/panels/network/panel-cell-renderer-security.c
@@ -71,12 +71,10 @@ panel_cell_renderer_set_name (PanelCellRendererSecurity *renderer)
         if (icon_name != NULL) {
                 g_object_set (renderer,
                               "icon-name", icon_name,
-                              "visible", TRUE,
                               NULL);
         } else {
                 g_object_set (renderer,
-                              "icon-name", NULL,
-                              "visible", FALSE,
+                              "icon-name", "",
                               NULL);
         }
 }
diff --git a/panels/network/panel-cell-renderer-signal.c b/panels/network/panel-cell-renderer-signal.c
index 782526e..fbdfcee 100644
--- a/panels/network/panel-cell-renderer-signal.c
+++ b/panels/network/panel-cell-renderer-signal.c
@@ -66,7 +66,7 @@ panel_cell_renderer_set_name (PanelCellRendererSignal *renderer)
         GIcon *icon;
 
         /* the 'Other...' entry */
-        if (renderer->signal == 0) {
+        if (renderer->signal <= 0) {
                 g_object_set (renderer, "gicon", NULL, NULL);
                 return;
         }



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