[network-manager-applet/NETWORKMANAGER_APPLET_0_7] fix notification actions broken by 28997329dab2e260c13d53376aae6c6a477fc804
- From: Dan Williams <dcbw src gnome org>
- To: svn-commits-list gnome org
- Subject: [network-manager-applet/NETWORKMANAGER_APPLET_0_7] fix notification actions broken by 28997329dab2e260c13d53376aae6c6a477fc804
- Date: Thu, 7 May 2009 21:23:43 -0400 (EDT)
commit 0e481839a72bd25588692815f5eaaef60e16e27d
Author: Dan Williams <dcbw redhat com>
Date: Thu May 7 21:21:33 2009 -0400
fix notification actions broken by 28997329dab2e260c13d53376aae6c6a477fc804
---
src/applet.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/applet.c b/src/applet.c
index 82472c1..c189c1f 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -2478,7 +2478,7 @@ constructor (GType type,
{
NMApplet *applet;
AppletDBusManager *dbus_mgr;
- GList *server_caps;
+ GList *server_caps, *iter;
applet = NM_APPLET (G_OBJECT_CLASS (nma_parent_class)->constructor (type, n_props, construct_props));
@@ -2510,10 +2510,11 @@ constructor (GType type,
notify_init ("NetworkManager");
server_caps = notify_get_server_caps();
- if (g_list_find (server_caps, NOTIFY_CAPS_ACTIONS_KEY))
- applet->notify_with_actions = TRUE;
- else
- applet->notify_with_actions = FALSE;
+ applet->notify_with_actions = FALSE;
+ for (iter = server_caps; iter; iter = g_list_next (iter)) {
+ if (!strcmp ((const char *) iter->data, NOTIFY_CAPS_ACTIONS_KEY))
+ applet->notify_with_actions = TRUE;
+ }
g_list_foreach (server_caps, (GFunc) g_free, NULL);
g_list_free (server_caps);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]