[network-manager-applet/nma-0-9-6] 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/nma-0-9-6] applet: suppress applet notifications when the Shell is running
- Date: Tue, 2 Oct 2012 20:43:43 +0000 (UTC)
commit 941369264d5b1e3ea08d9cf49cffa392648908eb
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 dc4cbad..16bb327 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -859,6 +859,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]