Mercurial > pidgin
diff src/pluginpref.c @ 13268:16f6d6f8afc7
[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 <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 13 Feb 2006 03:49:57 +0000 |
parents | a0a4b44239e8 |
children | 8bda65b88e49 |
line wrap: on
line diff
--- 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);