[network-manager-applet] applet: suppress applet notifications when the Shell is running
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] applet: suppress applet notifications when the Shell is running
- Date: Tue, 2 Oct 2012 20:43:01 +0000 (UTC)
commit 05f975d04f47117762b3eddbd80d8e3eb173252d
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Oct 2 16:18:37 2012 -0400
applet: suppress applet notifications when the Shell is running
https://bugzilla.gnome.org/show_bug.cgi?id=685327
src/applet.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/applet.c b/src/applet.c
index 666a23a..819a307 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -883,6 +883,10 @@ applet_do_notify (NMApplet *applet,
if (!gtk_status_icon_is_embedded (applet->status_icon))
return;
+ /* if we're not registered, don't notify either */
+ if (!nm_secret_agent_get_registered (NM_SECRET_AGENT (applet->agent)))
+ return;
+
applet_clear_notify (applet);
escaped = utils_escape_notify_message (message);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]