[gnome-control-center] network: Fix all Wi-Fi networks having gear buttons



commit 99d675856ad55c22f87de0281f58fdb07a231e61
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jun 12 14:07:33 2015 +0200

    network: Fix all Wi-Fi networks having gear buttons
    
    Only the networks with existing connection should have gear buttons.
    This is a regression from 9ffaff74724aafe29a836b472dd682e6156ef00f.
    
    If the widget we add as a stack page isn't visible, the page will not be
    shown. As we later add another page with that button, we'd end up
    showing that by default.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=750841

 panels/network/net-device-wifi.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index 017ba96..7b6236e 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -1555,6 +1555,7 @@ make_row (GtkSizeGroup   *rows,
         gtk_widget_show (button_stack);
 
         widget = gtk_label_new ("");
+        gtk_widget_show (widget);
         gtk_container_add (GTK_CONTAINER (button_stack), widget);
 
         widget = NULL;


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