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::Prefs PACKAGE = Gaim::Prefs PREFIX = gaim_prefs_ | |
| 4 | PROTOTYPES: ENABLE | |
| 5 | ||
| 6 | void | |
| 7 | gaim_prefs_add_bool(name, value) | |
| 8 | const char *name | |
| 9 | gboolean value | |
| 10 | ||
| 11 | void | |
| 12 | gaim_prefs_add_int(name, value) | |
| 13 | const char *name | |
| 14 | int value | |
| 15 | ||
| 16 | void | |
| 17 | gaim_prefs_add_none(name) | |
| 18 | const char *name | |
| 19 | ||
| 20 | void | |
| 21 | gaim_prefs_add_string(name, value) | |
| 22 | const char *name | |
| 23 | const char *value | |
| 24 | ||
| 25 | void | |
| 26 | gaim_prefs_add_string_list(name, value) | |
| 27 | const char *name | |
| 28 | SV *value | |
| 29 | PREINIT: | |
| 30 | GList *t_GL; | |
| 31 | int i, t_len; | |
| 32 | PPCODE: | |
| 33 | t_GL = NULL; | |
| 34 | t_len = av_len((AV *)SvRV(value)); | |
| 35 | ||
| 36 | for (i = 0; i < t_len; i++) { | |
| 37 | STRLEN t_sl; | |
| 38 | t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(value), i, 0), t_sl)); | |
| 39 | } | |
| 40 | gaim_prefs_add_string_list(name, t_GL); | |
| 41 | ||
| 42 | ||
| 43 | ||
| 44 | void | |
| 45 | gaim_prefs_destroy() | |
| 46 | ||
| 47 | ||
| 48 | void | |
| 49 | gaim_prefs_disconnect_by_handle(handle) | |
| 50 | void * handle | |
| 51 | ||
| 52 | void | |
| 53 | gaim_prefs_disconnect_callback(callback_id) | |
| 54 | guint callback_id | |
| 55 | ||
| 56 | gboolean | |
| 57 | gaim_prefs_exists(name) | |
| 58 | const char *name | |
| 59 | ||
| 60 | gboolean | |
| 61 | gaim_prefs_get_bool(name) | |
| 62 | const char *name | |
| 63 | ||
| 64 | void * | |
| 65 | gaim_prefs_get_handle() | |
| 66 | ||
| 67 | ||
| 68 | int | |
| 69 | gaim_prefs_get_int(name) | |
| 70 | const char *name | |
| 71 | ||
| 72 | const char * | |
| 73 | gaim_prefs_get_string(name) | |
| 74 | const char *name | |
| 75 | ||
| 76 | void | |
| 77 | gaim_prefs_get_string_list(name) | |
| 78 | const char *name | |
| 79 | PREINIT: | |
| 80 | GList *l; | |
| 81 | PPCODE: | |
| 82 | for (l = gaim_prefs_get_string_list(name); l != NULL; l = l->next) { | |
| 83 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::PrefValue"))); | |
| 84 | } | |
| 85 | ||
| 86 | ||
| 87 | ||
| 88 | Gaim::PrefType | |
| 89 | gaim_prefs_get_type(name) | |
| 90 | const char *name | |
| 91 | ||
| 92 | void | |
| 93 | gaim_prefs_init() | |
| 94 | ||
| 95 | ||
| 96 | gboolean | |
| 97 | gaim_prefs_load() | |
| 98 | ||
| 99 | ||
| 100 | void | |
| 101 | gaim_prefs_remove(name) | |
| 102 | const char *name | |
| 103 | ||
| 104 | void | |
| 105 | gaim_prefs_rename(oldname, newname) | |
| 106 | const char *oldname | |
| 107 | const char *newname | |
| 108 | ||
| 109 | void | |
| 110 | gaim_prefs_rename_boolean_toggle(oldname, newname) | |
| 111 | const char *oldname | |
| 112 | const char *newname | |
| 113 | ||
| 114 | void | |
| 115 | gaim_prefs_set_bool(name, value) | |
| 116 | const char *name | |
| 117 | gboolean value | |
| 118 | ||
| 119 | void | |
| 120 | gaim_prefs_set_generic(name, value) | |
| 121 | const char *name | |
| 122 | gpointer value | |
| 123 | ||
| 124 | void | |
| 125 | gaim_prefs_set_int(name, value) | |
| 126 | const char *name | |
| 127 | int value | |
| 128 | ||
| 129 | void | |
| 130 | gaim_prefs_set_string(name, value) | |
| 131 | const char *name | |
| 132 | const char *value | |
| 133 | ||
| 134 | void | |
| 135 | gaim_prefs_set_string_list(name, value) | |
| 136 | const char *name | |
| 137 | SV *value | |
| 138 | PREINIT: | |
| 139 | GList *t_GL; | |
| 140 | int i, t_len; | |
| 141 | PPCODE: | |
| 142 | t_GL = NULL; | |
| 143 | t_len = av_len((AV *)SvRV(value)); | |
| 144 | ||
| 145 | for (i = 0; i < t_len; i++) { | |
| 146 | STRLEN t_sl; | |
| 147 | t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(value), i, 0), t_sl)); | |
| 148 | } | |
| 149 | gaim_prefs_set_string_list(name, t_GL); | |
| 150 | ||
| 151 | void | |
| 152 | gaim_prefs_trigger_callback(name) | |
| 153 | const char *name | |
| 154 | ||
| 155 | void | |
| 156 | gaim_prefs_uninit() | |
| 157 | ||
| 158 | ||
| 159 | void | |
| 160 | gaim_prefs_update_old() | |
| 161 | ||
| 162 |