diff options
author | Giovanni Campagna <gcampagna@src.gnome.org> | 2013-06-16 01:02:06 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2013-09-02 21:42:37 -0400 |
commit | 2b4ab4d22f42dd264a4ddfa68b02bba0d6c71b0b (patch) | |
tree | 1170059d40354d4f9556f26afdd533ceb4912c66 | |
parent | 91280420269c98e408adc0db1e1d1e74cf24c71c (diff) | |
download | libnotify-2b4ab4d22f42dd264a4ddfa68b02bba0d6c71b0b.tar.gz |
NotifyNotification: fix annotation for add_action()
Using GFreeFunc instead of GDestroyNotify was a mistake, but
(scope async) is even a bigger mistake (one that can crash apps,
if an action is invoked multiple times)
https://bugzilla.gnome.org/show_bug.cgi?id=702390
-rw-r--r-- | libnotify/notification.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libnotify/notification.c b/libnotify/notification.c index d9e9283..670930b 100644 --- a/libnotify/notification.c +++ b/libnotify/notification.c @@ -1019,9 +1019,9 @@ notify_notification_clear_actions (NotifyNotification *notification) * @notification: The notification. * @action: The action ID. * @label: The human-readable action label. - * @callback: (scope async): The action's callback function. - * @user_data: (allow-none): Optional custom data to pass to @callback. - * @free_func: (scope async) (allow-none): An optional function to free @user_data when the notification + * @callback: The action's callback function. + * @user_data: Optional custom data to pass to @callback. + * @free_func: (type GLib.DestroyNotify): An optional function to free @user_data when the notification * is destroyed. * * Adds an action to a notification. When the action is invoked, the |