[gaim-migrate @ 15634]

Mon, 13 Feb 2006 03:49:57 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Mon, 13 Feb 2006 03:49:57 +0000
changeset 13269
8c181163ae55
parent 13268
5f523813f880
child 13270
74eb00949533

[gaim-migrate @ 15634]
SF Patch #1430229 from Sadrul

"Currently it is not possible to have a choice with
value 0 for int-preferences."

committer: Richard Laager <rlaager@pidgin.im>

src/pluginpref.c file | annotate | diff | comparison | revisions
--- 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);

mercurial