Patch by lucasr to fix an invalid assertion in notify_notification_new_with_status_icon. This closes bug #85.

This commit is contained in:
Christian Hammond 2006-09-04 06:49:15 +00:00
parent fead26f260
commit 4d601b61b1
3 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,10 @@
Sun Sep 03 23:48:29 PDT 2006 Christian Hammond <chipx86@chipx86.com>
* libnotify/notification.c:
* NEWS:
- Patch by lucasr to fix an invalid assertion in
notify_notification_new_with_status_icon. This closes bug #85.
Sun Sep 03 23:44:01 PDT 2006 Christian Hammond <chipx86@chipx86.com>
* libnotify/notify.c:

2
NEWS
View File

@ -9,6 +9,8 @@ version 0.4.3:
* Fixed the property change notification used when setting a GtkStatusIocn.
It was emitting "attach-icon" but should have been emitted "status-icon".
(Bug #81)
* Fixed an invalid assertion in notify_notification_new_with_status_icon.
Patch by lucasr. (Bug #85)
* notify_uninit is no longer called automatically at exit. Applications
and libraries should do this manually. Patch by berndth. (Bug #86)

View File

@ -502,7 +502,7 @@ notify_notification_new_with_status_icon(const gchar *summary,
const gchar *icon,
GtkStatusIcon *status_icon)
{
g_return_val_if_fail(status_icon == NULL, NULL);
g_return_val_if_fail(status_icon != NULL, NULL);
g_return_val_if_fail(GTK_IS_STATUS_ICON(status_icon), NULL);
return g_object_new(NOTIFY_TYPE_NOTIFICATION,