Patch (bug #3050) by Duarte Henriques to prevent closing notifications we don't own.
This commit is contained in:
parent
12f74a149c
commit
be828ca9ce
|
@ -1,3 +1,9 @@
|
|||
Wed Jul 27 01:13:12 PDT 2005 Christian Hammond <chipx86@chipx86.com>
|
||||
|
||||
* 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 <chipx86@chipx86.com>
|
||||
|
||||
* 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);
|
||||
|
|
Loading…
Reference in New Issue