diff -r 2d8f2c9b761d -r 21ea46d3dee9 src/pluginpref.c --- a/src/pluginpref.c Wed Jan 04 03:01:32 2006 +0000 +++ b/src/pluginpref.c Wed Jan 04 04:14:02 2006 +0000 @@ -45,6 +45,7 @@ GList *choices; unsigned int max_length; gboolean masked; + GaimStringFormatType format; }; GaimPluginPrefFrame * @@ -293,3 +294,24 @@ return pref->masked; } + +void +gaim_plugin_pref_set_format_type(GaimPluginPref *pref, GaimStringFormatType format) +{ + g_return_if_fail(pref); + g_return_if_fail(pref->type == GAIM_PLUGIN_PREF_STRING_FORMAT); + + pref->format = format; +} + +GaimStringFormatType +gaim_plugin_pref_get_format_type(GaimPluginPref *pref) +{ + g_return_val_if_fail(pref, 0); + + if (pref->type != GAIM_PLUGIN_PREF_STRING_FORMAT) + return GAIM_STRING_FORMAT_TYPE_NONE; + + return pref->format; +} +