1 Index: network-manager-applet-0.8/src/applet.c
2 ===================================================================
3 --- network-manager-applet-0.8.orig/src/applet.c 2010-03-09 14:58:49.000000000 +0100
4 +++ network-manager-applet-0.8/src/applet.c 2010-03-09 15:02:59.000000000 +0100
10 -applet_clear_notify (NMApplet *applet)
12 - if (applet->notification == NULL)
15 - notify_notification_close (applet->notification, NULL);
16 - g_object_unref (applet->notification);
17 - applet->notification = NULL;
21 applet_notify_server_has_actions ()
27 - applet_clear_notify (applet);
29 escaped = utils_escape_notify_message (message);
30 - notify = notify_notification_new (summary,
32 - icon ? icon : GTK_STOCK_NETWORK,
35 - applet->notification = notify;
36 + if (applet->notification == NULL) {
37 + notify = notify_notification_new (summary,
39 + icon ? icon : GTK_STOCK_NETWORK,
42 + applet->notification = notify;
44 + notify = applet->notification;
45 + notify_notification_update (notify,
48 + icon ? icon : GTK_STOCK_NETWORK);
53 notify_notification_attach_to_status_icon (notify, applet->status_icon);
54 notify_notification_set_urgency (notify, urgency);
56 /* Have clicking on the applet act also as acknowledgement
57 * of the notification.
59 - applet_clear_notify (applet);
61 nma_menu_clear (applet);
62 gtk_menu_popup (GTK_MENU (applet->menu), NULL, NULL,
64 /* Have clicking on the applet act also as acknowledgement
65 * of the notification.
67 - applet_clear_notify (applet);
69 nma_context_menu_update (applet);
70 gtk_menu_popup (GTK_MENU (applet->context_menu), NULL, NULL,