/pidgin/main: d0b5e37899e1: Request API: allow action_count = 0

Tomasz Wasilczyk twasilczyk at pidgin.im
Mon Sep 9 08:47:35 EDT 2013


Changeset: d0b5e37899e1b4692cba04bba52a489c29579d1d
Author:	 Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date:	 2013-09-09 14:47 +0200
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/d0b5e37899e1

Description:

Request API: allow action_count = 0

diffstat:

 libpurple/request.c |  8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diffs (39 lines):

diff --git a/libpurple/request.c b/libpurple/request.c
--- a/libpurple/request.c
+++ b/libpurple/request.c
@@ -1680,8 +1680,6 @@ purple_request_action(void *handle, cons
 	void *ui_handle;
 	va_list args;
 
-	g_return_val_if_fail(action_count > 0, NULL);
-
 	va_start(args, action_count);
 	ui_handle = purple_request_action_varg(handle, title, primary, secondary,
 										 default_action, account, who, conv,
@@ -1702,8 +1700,6 @@ purple_request_action_with_icon(void *ha
 	void *ui_handle;
 	va_list args;
 
-	g_return_val_if_fail(action_count > 0, NULL);
-
 	va_start(args, action_count);
 	ui_handle = purple_request_action_with_icon_varg(handle, title, primary,
 		secondary, default_action, account, who, conv, icon_data, icon_size,
@@ -1723,8 +1719,6 @@ purple_request_action_varg(void *handle,
 {
 	PurpleRequestUiOps *ops;
 
-	g_return_val_if_fail(action_count > 0, NULL);
-
 	ops = purple_request_get_ui_ops();
 
 	if (ops != NULL && ops->request_action != NULL) {
@@ -1756,8 +1750,6 @@ purple_request_action_with_icon_varg(voi
 {
 	PurpleRequestUiOps *ops;
 
-	g_return_val_if_fail(action_count > 0, NULL);
-
 	ops = purple_request_get_ui_ops();
 
 	if (ops != NULL && ops->request_action_with_icon != NULL) {



More information about the Commits mailing list