[PATCH] applet: always show the applet
- From: Mathieu Trudel-Lapierre <mathieu-tl ubuntu com>
- To: networkmanager-list gnome org
- Cc: Mathieu Trudel-Lapierre <mathieu-tl ubuntu com>
- Subject: [PATCH] applet: always show the applet
- Date: Tue, 5 Mar 2013 11:48:21 -0500
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 file changed, 2 insertions(+), 1 deletion(-)
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 */
--
1.8.1.2
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]