comparison 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
comparison
equal deleted inserted replaced
12711:145f76e74a9f 12712:8ae981f2c9cb
31 31
32 typedef enum { 32 typedef enum {
33 GAIM_PLUGIN_PREF_NONE, 33 GAIM_PLUGIN_PREF_NONE,
34 GAIM_PLUGIN_PREF_CHOICE, 34 GAIM_PLUGIN_PREF_CHOICE,
35 GAIM_PLUGIN_PREF_INFO, /**< no-value label */ 35 GAIM_PLUGIN_PREF_INFO, /**< no-value label */
36 GAIM_PLUGIN_PREF_STRING_FORMAT
36 } GaimPluginPrefType; 37 } GaimPluginPrefType;
37 38
38 #include <glib.h> 39 #include <glib.h>
39 #include "prefs.h" 40 #include "prefs.h"
40 41
229 * @param pref The plugin pref 230 * @param pref The plugin pref
230 * @return The masking 231 * @return The masking
231 */ 232 */
232 gboolean gaim_plugin_pref_get_masked(GaimPluginPref *pref); 233 gboolean gaim_plugin_pref_get_masked(GaimPluginPref *pref);
233 234
235 /**
236 * Sets the format type for a formattable-string plugin pref. You need to set the
237 * pref type to GAIM_PLUGIN_PREF_STRING_FORMAT first before setting the format.
238 *
239 * @param pref The plugin pref
240 * @param format The format of the string
241 */
242 void gaim_plugin_pref_set_format_type(GaimPluginPref *pref, GaimStringFormatType format);
243
244 /**
245 * Gets the format type of the formattable-string plugin pref.
246 *
247 * @param pref The plugin pref
248 * @return The format of the pref
249 */
250 GaimStringFormatType gaim_plugin_pref_get_format_type(GaimPluginPref *pref);
251
234 /*@}*/ 252 /*@}*/
235 253
236 #ifdef __cplusplus 254 #ifdef __cplusplus
237 } 255 }
238 #endif 256 #endif