[network-manager-applet] applet: always show the applet



commit 276a702000ee9e509321891f5ffa9789acfb053c
Author: Mathieu Trudel-Lapierre <mathieu-tl ubuntu com>
Date:   Tue Mar 5 11:48:21 2013 -0500

    applet: always show the applet
    
    This is a patch that has been carried in Ubuntu for a while now. Instead of
    hiding the applet if NetworkManager isn't running, make use of the messages
    already included that mention that it's not, and just always keep showing
    the applet; just with a different menu if NM is unavailable.

 src/applet.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/applet.c b/src/applet.c
index 86d9c14..f1eec25 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -2482,6 +2482,8 @@ foo_client_setup (NMApplet *applet)
 
        if (nm_client_get_manager_running (applet->nm_client))
                g_idle_add (foo_set_initial_state, applet);
+
+       applet_schedule_update_icon (applet);
 }
 
 #if WITH_MODEM_MANAGER_1
@@ -2719,7 +2721,6 @@ applet_update_icon (gpointer user_data)
        applet->update_icon_id = 0;
 
        nm_running = nm_client_get_manager_running (applet->nm_client);
-       gtk_status_icon_set_visible (applet->status_icon, nm_running);
 
        /* Handle device state first */
 


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