From be828ca9ce2710aaa9a1810981b945e9fffc5445 Mon Sep 17 00:00:00 2001 From: Christian Hammond Date: Wed, 27 Jul 2005 08:15:33 +0000 Subject: [PATCH] Patch (bug #3050) by Duarte Henriques to prevent closing notifications we don't own. --- ChangeLog | 6 ++++++ libnotify/notify.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 870954a..471c3c4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed Jul 27 01:13:12 PDT 2005 Christian Hammond + + * libnotify/notify.c: + - Patch (bug #3050) by Duarte Henriques to prevent closing + notifications we don't own. + Wed Jul 27 01:08:56 PDT 2005 Christian Hammond * libnotify/notify.c: diff --git a/libnotify/notify.c b/libnotify/notify.c index 4827103..27450eb 100644 --- a/libnotify/notify.c +++ b/libnotify/notify.c @@ -412,6 +412,9 @@ notify_close(NotifyHandle *handle) g_return_if_fail(handle != NULL); + /* Don't close other applications' notifications! */ + g_return_if_fail(g_hash_table_lookup(_handles, &handle->id) != NULL); + message = _notify_dbus_message_new("CloseNotification", &iter); g_return_if_fail(message != NULL);