Mon, 03 Oct 2005 03:17:46 +0000
[gaim-migrate @ 13866]
Rewrite of the "transparency" plugin. This should suck less and now offers the option of being opaque on focus. I need to evaluate the "Always on top" functionality of the Buddy List because it may conflict wiht the WinGaim Options plugin.
| 11118 | 1 | #include "module.h" |
| 2 | ||
| 3 | MODULE = Gaim::Account::Option PACKAGE = Gaim::Account::Option PREFIX = gaim_account_option_ | |
| 4 | PROTOTYPES: ENABLE | |
| 5 | ||
| 6 | void | |
| 7 | gaim_account_option_destroy(option) | |
| 8 | Gaim::Account::Option option | |
| 9 | ||
| 10 | const char * | |
| 11 | gaim_account_option_get_default_string(option) | |
| 12 | Gaim::Account::Option option | |
| 13 | ||
| 14 | void | |
| 15 | gaim_account_option_add_list_item(option, key, value) | |
| 16 | Gaim::Account::Option option | |
| 17 | const char * key | |
| 18 | const char * value | |
| 19 | ||
| 20 | void | |
| 21 | gaim_account_option_set_default_string(option, value); | |
| 22 | Gaim::Account::Option option | |
| 23 | const char * value | |
| 24 | ||
| 25 | void | |
| 26 | gaim_account_option_set_default_int(option, value); | |
| 27 | Gaim::Account::Option option | |
| 28 | int value | |
| 29 | ||
| 30 | void | |
| 31 | gaim_account_option_set_default_bool(option, value); | |
| 32 | Gaim::Account::Option option | |
| 33 | gboolean value | |
| 34 | ||
| 35 | Gaim::Account::Option | |
| 36 | gaim_account_option_list_new(text, pref_name, values) | |
| 37 | const char * text | |
| 38 | const char * pref_name | |
| 39 | SV * values | |
| 40 | PREINIT: | |
| 41 | GList *t_GL; | |
| 42 | int i, t_len; | |
| 11131 | 43 | CODE: |
| 11118 | 44 | t_GL = NULL; |
| 45 | t_len = av_len((AV *)SvRV(values)); | |
| 46 | ||
| 47 | for (i = 0; i < t_len; i++) { | |
| 48 | STRLEN t_sl; | |
| 49 | t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(values), i, 0), t_sl)); | |
| 50 | } | |
| 11131 | 51 | RETVAL = gaim_account_option_list_new(text, pref_name, t_GL); |
| 52 | OUTPUT: | |
| 53 | RETVAL | |
| 11118 | 54 | |
| 55 | Gaim::Account::Option | |
| 56 | gaim_account_option_string_new(text, pref_name, default_value) | |
| 57 | const char * text | |
| 58 | const char * pref_name | |
| 59 | const char * default_value | |
| 60 | ||
| 61 | Gaim::Account::Option | |
| 62 | gaim_account_option_int_new(text, pref_name, default_value) | |
| 63 | const char * text | |
| 64 | const char * pref_name | |
| 65 | gboolean default_value | |
| 66 | ||
| 67 | Gaim::Account::Option | |
| 68 | gaim_account_option_bool_new(text, pref_name, default_value) | |
| 69 | const char * text | |
| 70 | const char * pref_name | |
| 71 | gboolean default_value | |
| 72 | ||
| 73 | Gaim::Account::Option | |
| 74 | gaim_account_option_new(type, text, pref_name) | |
| 75 | Gaim::PrefType type | |
| 76 | const char * text | |
| 77 | const char * pref_name | |
| 78 | ||
| 79 | void | |
| 80 | gaim_account_option_get_list(option) | |
| 81 | Gaim::Account::Option option | |
| 82 | PREINIT: | |
| 11130 | 83 | const GList *l; |
| 11118 | 84 | PPCODE: |
| 85 | for (l = gaim_account_option_get_list(option); l != NULL; l = l->next) { | |
| 86 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::ListEntry"))); | |
| 87 | } | |
| 88 | ||
| 89 | Gaim::PrefType | |
| 90 | gaim_account_option_get_type(option) | |
| 91 | Gaim::Account::Option option | |
| 92 | ||
| 93 | gboolean | |
| 94 | gaim_account_option_get_masked(option) | |
| 95 | Gaim::Account::Option option | |
| 96 | ||
| 97 | int | |
| 98 | gaim_account_option_get_default_int(option) | |
| 99 | Gaim::Account::Option option; | |
| 100 | INIT: | |
| 101 | ||
| 102 | gboolean | |
| 103 | gaim_account_option_get_default_bool(option) | |
| 104 | Gaim::Account::Option option; | |
| 105 | ||
| 106 | const char * | |
| 107 | gaim_account_option_get_setting(option) | |
| 108 | Gaim::Account::Option option | |
| 109 | ||
| 110 | const char * | |
| 111 | gaim_account_option_get_text(option) | |
| 112 | Gaim::Account::Option option | |
| 113 | ||
| 114 | void | |
| 115 | gaim_account_option_set_list(option, values) | |
| 116 | Gaim::Account::Option option | |
| 117 | SV * values | |
| 118 | PREINIT: | |
| 119 | GList *t_GL; | |
| 120 | int i, t_len; | |
| 121 | PPCODE: | |
| 122 | t_GL = NULL; | |
| 123 | t_len = av_len((AV *)SvRV(values)); | |
| 124 | ||
| 125 | for (i = 0; i < t_len; i++) { | |
| 126 | STRLEN t_sl; | |
| 127 | t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(values), i, 0), t_sl)); | |
| 128 | } | |
| 129 | gaim_account_option_set_list(option, t_GL); | |
| 130 | ||
| 131 | void | |
| 132 | gaim_account_option_set_masked(option, masked) | |
| 133 | Gaim::Account::Option option | |
| 134 | gboolean masked | |
| 135 | ||
| 136 | MODULE = Gaim::Account::Option PACKAGE = Gaim::Account::UserSplit PREFIX = gaim_account_user_split_ | |
| 137 | PROTOTYPES: ENABLE | |
| 138 | ||
| 139 | Gaim::Account::UserSplit | |
| 140 | gaim_account_user_split_new(text, default_value, sep) | |
| 141 | const char * text | |
| 142 | const char * default_value | |
| 143 | char sep | |
| 144 | ||
| 145 | char | |
| 146 | gaim_account_user_split_get_separator(split) | |
| 147 | Gaim::Account::UserSplit split | |
| 148 | ||
| 149 | const char * | |
| 150 | gaim_account_user_split_get_text(split) | |
| 151 | Gaim::Account::UserSplit split | |
| 152 | ||
| 153 | void | |
| 154 | gaim_account_user_split_destroy(split) | |
| 155 | Gaim::Account::UserSplit split |