From 2b4ab4d22f42dd264a4ddfa68b02bba0d6c71b0b Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Sun, 16 Jun 2013 01:02:06 +0200 Subject: 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 --- libnotify/notification.c | 6 +++--- 1 file 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 -- cgit v1.2.1