On Tue, 2013-03-05 at 11:48 -0500, Mathieu Trudel-Lapierre wrote:
> 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.

Pushed, thanks.

Dan

> ---
>  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 */
>  


_______________________________________________
networkmanager-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/networkmanager-list

Reply via email to