Merge lp:~dbarth/notify-osd/close-notification-api into lp:notify-osd/trunk

Proposed by David Barth
Status: Rejected
Rejected by: Neil J. Patel
Proposed branch: lp:~dbarth/notify-osd/close-notification-api
Merge into: lp:notify-osd/trunk
Diff against target: 34 lines (+14/-10)
1 file modified
src/stack.c (+14/-10)
To merge this branch: bzr merge lp:~dbarth/notify-osd/close-notification-api
Reviewer Review Type Date Requested Status
Neil J. Patel (community) Disapprove
Review via email: mp+20008@code.launchpad.net
To post a comment you must log in.
Revision history for this message
David Barth (dbarth) wrote :

This patch should re-enable the API. It should help clarify Network Manager's notifications at startup or when resuming from sleep.

Revision history for this message
Neil J. Patel (njpatel) :
review: Disapprove

Unmerged revisions

409. By David Barth

re-enable the close-notification API

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/stack.c'
--- src/stack.c 2009-10-20 08:51:11 +0000
+++ src/stack.c 2010-02-23 21:58:13 +0000
@@ -810,16 +810,20 @@
810 if (bubble == NULL)810 if (bubble == NULL)
811 return TRUE;811 return TRUE;
812812
813 dbus_send_close_signal (bubble_get_sender (bubble),813 // keep a copy of that information before disposing
814 bubble_get_id (bubble),814 // a notification
815 3);815 gchar *sender = g_strdup (bubble_get_sender (bubble));
816816
817 // do not trigger any closure of a notification-bubble here, as817 bubble_hide (bubble);
818 // this kind of control from outside (DBus) does not comply with818
819 // the notify-osd specification819 // confirm the notification has been closed
820 //bubble_hide (bubble);820 dbus_send_close_signal (sender, id, 3);
821 //g_object_unref (bubble);821
822 //stack_layout (self);822 g_object_unref (bubble);
823
824 stack_layout (self);
825
826 g_free (sender);
823827
824 return TRUE;828 return TRUE;
825}829}

Subscribers

People subscribed via source and target branches