Mercurial > pidgin
diff src/pluginpref.h @ 12712:8ae981f2c9cb
[gaim-migrate @ 15056]
SF Patch #1395207 from Sadrul
"Gaim currently doesn't allow to have
formatted/multiline string as a preference for
core-plugins. It'd be great if core plugins could have
formatted strings for preference (ie. have
imhtml+toolbar for the preference in the
Plugin-preference dialog) without actually having to
worry about gtk-codes."
committer: Tailor Script <tailor@pidgin.im>
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Wed, 04 Jan 2006 04:14:02 +0000 |
| parents | fc464a0abccc |
| children | a0a4b44239e8 |
line wrap: on
line diff
--- 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
