# HG changeset patch # User Richard Laager # Date 1139802597 0 # Node ID 16f6d6f8afc74909ff56a87d29462f0fccf40a95 # Parent f3ae450fb94717516ccb5126401de7109275e949 [gaim-migrate @ 15634] SF Patch #1430229 from Sadrul "Currently it is not possible to have a choice with value 0 for int-preferences." committer: Tailor Script diff -r f3ae450fb947 -r 16f6d6f8afc7 src/pluginpref.c --- a/src/pluginpref.c Mon Feb 13 03:40:00 2006 +0000 +++ b/src/pluginpref.c Mon Feb 13 03:49:57 2006 +0000 @@ -254,7 +254,7 @@ gaim_plugin_pref_add_choice(GaimPluginPref *pref, const char *label, gpointer choice) { g_return_if_fail(pref); g_return_if_fail(label); - g_return_if_fail(choice); + g_return_if_fail(choice || gaim_prefs_get_type(pref->name) == GAIM_PREF_INT); pref->choices = g_list_append(pref->choices, (gpointer)label); pref->choices = g_list_append(pref->choices, choice);