comparison 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
comparison
equal deleted inserted replaced
13267:f3ae450fb947 13268:16f6d6f8afc7
252 252
253 void 253 void
254 gaim_plugin_pref_add_choice(GaimPluginPref *pref, const char *label, gpointer choice) { 254 gaim_plugin_pref_add_choice(GaimPluginPref *pref, const char *label, gpointer choice) {
255 g_return_if_fail(pref); 255 g_return_if_fail(pref);
256 g_return_if_fail(label); 256 g_return_if_fail(label);
257 g_return_if_fail(choice); 257 g_return_if_fail(choice || gaim_prefs_get_type(pref->name) == GAIM_PREF_INT);
258 258
259 pref->choices = g_list_append(pref->choices, (gpointer)label); 259 pref->choices = g_list_append(pref->choices, (gpointer)label);
260 pref->choices = g_list_append(pref->choices, choice); 260 pref->choices = g_list_append(pref->choices, choice);
261 } 261 }
262 262