Mercurial > pidgin
changeset 12807:d6df6eb13ecf
[gaim-migrate @ 15154]
More whitespace and returned object class stuff.
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Tue, 10 Jan 2006 05:49:48 +0000 |
parents | ebef62bc831a |
children | 59ce7a35a22b |
files | plugins/perl/common/PluginPref.xs |
diffstat | 1 files changed, 15 insertions(+), 16 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/perl/common/PluginPref.xs Tue Jan 10 05:41:20 2006 +0000 +++ b/plugins/perl/common/PluginPref.xs Tue Jan 10 05:49:48 2006 +0000 @@ -8,7 +8,7 @@ Gaim::PluginPref::Frame frame Gaim::PluginPref pref -void +void gaim_plugin_pref_frame_destroy(frame) Gaim::PluginPref::Frame frame @@ -19,14 +19,13 @@ GList *l; PPCODE: for (l = gaim_plugin_pref_frame_get_prefs(frame); l != NULL; l = l->next) { - XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListItem"))); + XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::PluginPref"))); } - + Gaim::PluginPref::Frame gaim_plugin_pref_frame_new(class) C_ARGS: /* void */ - MODULE = Gaim::PluginPref PACKAGE = Gaim::PluginPref PREFIX = gaim_plugin_pref_ PROTOTYPES: ENABLE @@ -56,16 +55,16 @@ for (l = gaim_plugin_pref_get_choices(pref); l != NULL; l = l->next) { XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListItem"))); } - + char * gaim_plugin_pref_get_label(pref) Gaim::PluginPref pref -gboolean +gboolean gaim_plugin_pref_get_masked(pref) Gaim::PluginPref pref -unsigned int +unsigned int gaim_plugin_pref_get_max_length(pref) Gaim::PluginPref pref @@ -81,7 +80,6 @@ gaim_plugin_pref_new(class) C_ARGS: /* void */ - Gaim::PluginPref gaim_plugin_pref_new_with_label(class, label) char *label @@ -101,38 +99,40 @@ C_ARGS: name, label -void +void gaim_plugin_pref_set_bounds(pref, min, max) Gaim::PluginPref pref int min int max -void +void gaim_plugin_pref_set_label(pref, label) Gaim::PluginPref pref char *label -void +void gaim_plugin_pref_set_masked(pref, mask) Gaim::PluginPref pref gboolean mask -void +void gaim_plugin_pref_set_max_length(pref, max_length) Gaim::PluginPref pref unsigned int max_length -void +void gaim_plugin_pref_set_name(pref, name) Gaim::PluginPref pref char *name -void +void gaim_plugin_pref_set_type(pref, type) Gaim::PluginPref pref Gaim::PluginPrefType type +PREINIT: + GaimPluginPrefType gpp_type; CODE: - GaimPluginPrefType gpp_type = GAIM_PLUGIN_PREF_NONE; + gpp_type = GAIM_PLUGIN_PREF_NONE; if (type == 1) { gpp_type = GAIM_PLUGIN_PREF_CHOICE; @@ -140,4 +140,3 @@ gpp_type = GAIM_PLUGIN_PREF_INFO; } gaim_plugin_pref_set_type(pref, gpp_type); -