Tue, 18 Dec 2007 16:57:21 +0000
Sadrul informs me that cancel_cb may in fact be NULL.
| libpurple/request.c | file | annotate | diff | comparison | revisions | |
| libpurple/request.h | file | annotate | diff | comparison | revisions |
--- a/libpurple/request.c Tue Dec 18 16:10:22 2007 +0000 +++ b/libpurple/request.c Tue Dec 18 16:57:21 2007 +0000 @@ -1209,7 +1209,6 @@ g_return_val_if_fail(ok_text != NULL, NULL); g_return_val_if_fail(ok_cb != NULL, NULL); g_return_val_if_fail(cancel_text != NULL, NULL); - g_return_val_if_fail(cancel_cb != NULL, NULL); ops = purple_request_get_ui_ops();
--- a/libpurple/request.h Tue Dec 18 16:10:22 2007 +0000 +++ b/libpurple/request.h Tue Dec 18 16:57:21 2007 +0000 @@ -1241,8 +1241,8 @@ * NULL. * @param cancel_text The text for the @c Cancel button, which may not be @c * NULL. - * @param cancel_cb The callback for the @c Cancel button, which may not be - * @c NULL. + * @param cancel_cb The callback for the @c Cancel button, or @c NULL to + * do nothing. * @param account The #PurpleAccount associated with this request, or @c * NULL if none is. * @param who The username of the buddy assonciated with this request, @@ -1281,8 +1281,8 @@ * NULL. * @param cancel_text The text for the @c Cancel button, which may not be @c * NULL. - * @param cancel_cb The callback for the @c Cancel button, which may not be - * @c NULL. + * @param cancel_cb The callback for the @c Cancel button, or @c NULL to do + * nothing. * @param account The #PurpleAccount associated with this request, or @c * NULL if none is * @param who The username of the buddy assonciated with this request,