comparison src/pluginpref.c @ 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 26eac2362c32
children a0a4b44239e8
comparison
equal deleted inserted replaced
12711:145f76e74a9f 12712:8ae981f2c9cb
43 int min; 43 int min;
44 int max; 44 int max;
45 GList *choices; 45 GList *choices;
46 unsigned int max_length; 46 unsigned int max_length;
47 gboolean masked; 47 gboolean masked;
48 GaimStringFormatType format;
48 }; 49 };
49 50
50 GaimPluginPrefFrame * 51 GaimPluginPrefFrame *
51 gaim_plugin_pref_frame_new() { 52 gaim_plugin_pref_frame_new() {
52 GaimPluginPrefFrame *frame; 53 GaimPluginPrefFrame *frame;
291 gaim_plugin_pref_get_masked(GaimPluginPref *pref) { 292 gaim_plugin_pref_get_masked(GaimPluginPref *pref) {
292 g_return_val_if_fail(pref, FALSE); 293 g_return_val_if_fail(pref, FALSE);
293 294
294 return pref->masked; 295 return pref->masked;
295 } 296 }
297
298 void
299 gaim_plugin_pref_set_format_type(GaimPluginPref *pref, GaimStringFormatType format)
300 {
301 g_return_if_fail(pref);
302 g_return_if_fail(pref->type == GAIM_PLUGIN_PREF_STRING_FORMAT);
303
304 pref->format = format;
305 }
306
307 GaimStringFormatType
308 gaim_plugin_pref_get_format_type(GaimPluginPref *pref)
309 {
310 g_return_val_if_fail(pref, 0);
311
312 if (pref->type != GAIM_PLUGIN_PREF_STRING_FORMAT)
313 return GAIM_STRING_FORMAT_TYPE_NONE;
314
315 return pref->format;
316 }
317