--- a/src/pluginpref.h Wed Jan 04 03:01:32 2006 +0000 +++ b/src/pluginpref.h Wed Jan 04 04:14:02 2006 +0000 @@ -33,6 +33,7 @@ GAIM_PLUGIN_PREF_NONE, GAIM_PLUGIN_PREF_CHOICE, GAIM_PLUGIN_PREF_INFO, /**< no-value label */ + GAIM_PLUGIN_PREF_STRING_FORMAT } GaimPluginPrefType; #include <glib.h> @@ -231,6 +232,23 @@ */ gboolean gaim_plugin_pref_get_masked(GaimPluginPref *pref); +/** + * Sets the format type for a formattable-string plugin pref. You need to set the + * pref type to GAIM_PLUGIN_PREF_STRING_FORMAT first before setting the format. + * + * @param pref The plugin pref + * @param format The format of the string + */ +void gaim_plugin_pref_set_format_type(GaimPluginPref *pref, GaimStringFormatType format); + +/** + * Gets the format type of the formattable-string plugin pref. + * + * @param pref The plugin pref + * @return The format of the pref + */ +GaimStringFormatType gaim_plugin_pref_get_format_type(GaimPluginPref *pref); + /*@}*/ #ifdef __cplusplus