Tue, 29 Aug 2006 02:22:08 +0000
[gaim-migrate @ 17076]
SF Patch #1547720 from Hilbert
Fixes SF Bug #1541097
If you search, leave the Find dialog open, switch tabs, and search again, the search happens in the original tab. This patch fixes that bug. Now when you search, it searches in the active conversation window.
committer: Richard Laager <rlaager@pidgin.im>
| 6508 | 1 | #include "module.h" |
| 2 | ||
| 11290 | 3 | MODULE = Gaim::Account PACKAGE = Gaim::Account PREFIX = gaim_account_ |
| 4 | PROTOTYPES: ENABLE | |
| 11118 | 5 | |
| 6 | Gaim::Presence | |
| 7 | gaim_account_get_presence(account) | |
| 8 | Gaim::Account account | |
| 9 | ||
| 10 | Gaim::Account | |
| 12364 | 11 | gaim_account_new(class, username, protocol_id) |
| 11118 | 12 | const char * username |
| 13 | const char * protocol_id | |
| 12364 | 14 | C_ARGS: |
| 15 | username, protocol_id | |
| 11118 | 16 | |
| 12784 | 17 | void |
| 11118 | 18 | gaim_account_destroy(account) |
| 19 | Gaim::Account account | |
| 20 | ||
| 12784 | 21 | void |
|
10437
80a61d4c9a61
[gaim-migrate @ 11694]
Balwinder S Dheeman <bsd@rubyforge.org>
parents:
10404
diff
changeset
|
22 | gaim_account_connect(account) |
|
80a61d4c9a61
[gaim-migrate @ 11694]
Balwinder S Dheeman <bsd@rubyforge.org>
parents:
10404
diff
changeset
|
23 | Gaim::Account account |
|
80a61d4c9a61
[gaim-migrate @ 11694]
Balwinder S Dheeman <bsd@rubyforge.org>
parents:
10404
diff
changeset
|
24 | |
| 12784 | 25 | void |
| 11118 | 26 | gaim_account_register(account) |
| 27 | Gaim::Account account | |
| 28 | ||
| 12784 | 29 | void |
| 6508 | 30 | gaim_account_disconnect(account) |
| 31 | Gaim::Account account | |
| 32 | ||
| 12784 | 33 | void |
| 11118 | 34 | gaim_account_request_change_password(account) |
| 35 | Gaim::Account account | |
| 36 | ||
| 12784 | 37 | void |
| 11118 | 38 | gaim_account_request_change_user_info(account) |
| 39 | Gaim::Account account | |
| 40 | ||
| 12784 | 41 | void |
| 6508 | 42 | gaim_account_set_username(account, username) |
| 43 | Gaim::Account account | |
| 11118 | 44 | const char * username |
| 6508 | 45 | |
| 12784 | 46 | void |
| 6508 | 47 | gaim_account_set_password(account, password) |
| 48 | Gaim::Account account | |
| 11118 | 49 | const char * password |
| 6508 | 50 | |
| 12784 | 51 | void |
| 6508 | 52 | gaim_account_set_alias(account, alias) |
| 53 | Gaim::Account account | |
| 11118 | 54 | const char * alias |
| 6508 | 55 | |
| 12784 | 56 | void |
| 6508 | 57 | gaim_account_set_user_info(account, user_info) |
| 58 | Gaim::Account account | |
| 59 | const char *user_info | |
| 60 | ||
| 12784 | 61 | void |
| 11118 | 62 | gaim_account_set_buddy_icon(account, icon) |
| 6508 | 63 | Gaim::Account account |
| 11118 | 64 | const char *icon |
| 6508 | 65 | |
| 12784 | 66 | void |
| 11118 | 67 | gaim_account_set_connection(account, gc) |
| 6508 | 68 | Gaim::Account account |
| 11118 | 69 | Gaim::Connection gc |
| 6508 | 70 | |
| 12784 | 71 | void |
| 6508 | 72 | gaim_account_set_remember_password(account, value) |
| 73 | Gaim::Account account | |
| 74 | gboolean value | |
| 75 | ||
| 12784 | 76 | void |
| 6508 | 77 | gaim_account_set_check_mail(account, value) |
| 78 | Gaim::Account account | |
| 79 | gboolean value | |
| 80 | ||
| 12784 | 81 | void |
| 11118 | 82 | gaim_account_set_proxy_info(account, info) |
| 83 | Gaim::Account account | |
| 84 | Gaim::ProxyInfo info | |
| 85 | ||
|
10504
eae130eefbfe
[gaim-migrate @ 11796]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10437
diff
changeset
|
86 | void |
| 12784 | 87 | gaim_account_set_status(account, status_id, active) |
| 11118 | 88 | Gaim::Account account |
| 89 | const char *status_id | |
| 90 | gboolean active | |
| 91 | CODE: | |
| 92 | gaim_account_set_status(account, status_id, active); | |
| 93 | ||
| 12784 | 94 | void |
| 11118 | 95 | gaim_account_set_status_types(account, status_types) |
|
10504
eae130eefbfe
[gaim-migrate @ 11796]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10437
diff
changeset
|
96 | Gaim::Account account |
| 11118 | 97 | SV * status_types |
| 98 | PREINIT: | |
| 99 | GList *t_GL; | |
| 100 | int i, t_len; | |
| 101 | PPCODE: | |
| 102 | t_GL = NULL; | |
| 103 | t_len = av_len((AV *)SvRV(status_types)); | |
|
10504
eae130eefbfe
[gaim-migrate @ 11796]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10437
diff
changeset
|
104 | |
| 11118 | 105 | for (i = 0; i < t_len; i++) { |
| 106 | STRLEN t_sl; | |
| 107 | t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(status_types), i, 0), t_sl)); | |
| 108 | } | |
| 109 | gaim_account_set_status_types(account, t_GL); | |
| 110 | ||
| 12784 | 111 | void |
| 11118 | 112 | gaim_account_clear_settings(account) |
| 113 | Gaim::Account account | |
| 114 | ||
| 12784 | 115 | void |
| 11118 | 116 | gaim_account_set_int(account, name, value) |
| 117 | Gaim::Account account | |
| 118 | const char *name | |
| 119 | int value | |
| 120 | ||
| 12784 | 121 | gboolean |
| 6508 | 122 | gaim_account_is_connected(account) |
| 123 | Gaim::Account account | |
| 124 | ||
| 125 | const char * | |
| 126 | gaim_account_get_username(account) | |
| 127 | Gaim::Account account | |
| 128 | ||
| 129 | const char * | |
| 130 | gaim_account_get_password(account) | |
| 131 | Gaim::Account account | |
| 132 | ||
| 133 | const char * | |
| 134 | gaim_account_get_alias(account) | |
| 135 | Gaim::Account account | |
| 136 | ||
| 137 | const char * | |
| 138 | gaim_account_get_user_info(account) | |
| 139 | Gaim::Account account | |
| 140 | ||
| 141 | const char * | |
| 142 | gaim_account_get_buddy_icon(account) | |
| 143 | Gaim::Account account | |
| 144 | ||
| 145 | const char * | |
| 146 | gaim_account_get_protocol_id(account) | |
| 147 | Gaim::Account account | |
| 148 | ||
| 11118 | 149 | const char * |
| 150 | gaim_account_get_protocol_name(account) | |
| 151 | Gaim::Account account | |
| 152 | ||
| 6508 | 153 | Gaim::Connection |
| 154 | gaim_account_get_connection(account) | |
| 155 | Gaim::Account account | |
| 156 | ||
| 12784 | 157 | gboolean |
| 6508 | 158 | gaim_account_get_remember_password(account) |
| 159 | Gaim::Account account | |
| 160 | ||
| 12784 | 161 | gboolean |
| 6508 | 162 | gaim_account_get_check_mail(account) |
| 163 | Gaim::Account account | |
| 164 | ||
| 11118 | 165 | Gaim::ProxyInfo |
| 166 | gaim_account_get_proxy_info(account) | |
| 167 | Gaim::Account account | |
| 168 | ||
| 169 | Gaim::Status | |
| 170 | gaim_account_get_active_status(account) | |
| 171 | Gaim::Account account | |
| 172 | ||
| 173 | void | |
| 174 | gaim_account_get_status_types(account) | |
|
10504
eae130eefbfe
[gaim-migrate @ 11796]
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
10437
diff
changeset
|
175 | Gaim::Account account |
| 11118 | 176 | PREINIT: |
| 11130 | 177 | const GList *l; |
| 11118 | 178 | PPCODE: |
| 179 | for (l = gaim_account_get_status_types(account); l != NULL; l = l->next) { | |
| 12784 | 180 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::StatusType"))); |
| 11118 | 181 | } |
| 182 | ||
| 183 | Gaim::Log | |
|
13508
3c66c5a0ca7c
[gaim-migrate @ 15883]
Richard Laager <rlaager@pidgin.im>
parents:
13350
diff
changeset
|
184 | gaim_account_get_log(account, create) |
| 11118 | 185 | Gaim::Account account |
|
13508
3c66c5a0ca7c
[gaim-migrate @ 15883]
Richard Laager <rlaager@pidgin.im>
parents:
13350
diff
changeset
|
186 | gboolean create |
| 11118 | 187 | |
| 12784 | 188 | void |
| 11118 | 189 | gaim_account_destroy_log(account) |
| 190 | Gaim::Account account | |
| 191 | ||
| 12784 | 192 | void |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
193 | gaim_account_add_buddies(account, list) |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
194 | Gaim::Account account |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
195 | SV * list |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
196 | PREINIT: |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
197 | GList *t_GL; |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
198 | int i, t_len; |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
199 | PPCODE: |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
200 | t_GL = NULL; |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
201 | t_len = av_len((AV *)SvRV(list)); |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
202 | |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
203 | for (i = 0; i < t_len; i++) { |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
204 | STRLEN t_sl; |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
205 | t_GL = g_list_append(t_GL, SvPV(*av_fetch((AV *)SvRV(list), i, 0), t_sl)); |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
206 | } |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
207 | gaim_account_add_buddies(account, t_GL); |
| 12784 | 208 | |
| 209 | void | |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
210 | gaim_account_add_buddy(account, buddy) |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
211 | Gaim::Account account |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
212 | Gaim::BuddyList::Buddy buddy |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
213 | |
| 12784 | 214 | void |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
215 | gaim_account_change_password(account, a, b) |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
216 | Gaim::Account account |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
217 | const char * a |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
218 | const char * b |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
219 | |
| 12784 | 220 | void |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
221 | gaim_account_remove_buddies(account, A, B) |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
222 | Gaim::Account account |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
223 | SV * A |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
224 | SV * B |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
225 | PREINIT: |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
226 | GList *t_GL1, *t_GL2; |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
227 | int i, t_len; |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
228 | PPCODE: |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
229 | t_GL1 = NULL; |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
230 | t_len = av_len((AV *)SvRV(A)); |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
231 | |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
232 | for (i = 0; i < t_len; i++) { |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
233 | STRLEN t_sl; |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
234 | t_GL1 = g_list_append(t_GL1, SvPV(*av_fetch((AV *)SvRV(A), i, 0), t_sl)); |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
235 | } |
| 12784 | 236 | |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
237 | t_GL2 = NULL; |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
238 | t_len = av_len((AV *)SvRV(B)); |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
239 | |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
240 | for (i = 0; i < t_len; i++) { |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
241 | STRLEN t_sl; |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
242 | t_GL2 = g_list_append(t_GL2, SvPV(*av_fetch((AV *)SvRV(B), i, 0), t_sl)); |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
243 | } |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
244 | gaim_account_remove_buddies(account, t_GL1, t_GL2); |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
245 | |
| 12784 | 246 | void |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
247 | gaim_account_remove_buddy(account, buddy, group) |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
248 | Gaim::Account account |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
249 | Gaim::BuddyList::Buddy buddy |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
250 | Gaim::BuddyList::Group group |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
251 | |
| 12784 | 252 | void |
|
11643
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
253 | gaim_account_remove_group(account, group) |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
254 | Gaim::Account account |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
255 | Gaim::BuddyList::Group group |
|
f04408721780
[gaim-migrate @ 13920]
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
11318
diff
changeset
|
256 | |
| 6508 | 257 | MODULE = Gaim::Account PACKAGE = Gaim::Accounts PREFIX = gaim_accounts_ |
| 11118 | 258 | PROTOTYPES: ENABLE |
| 6508 | 259 | |
| 12784 | 260 | void |
| 6508 | 261 | gaim_accounts_add(account) |
| 262 | Gaim::Account account | |
| 263 | ||
| 12784 | 264 | void |
| 6508 | 265 | gaim_accounts_remove(account) |
| 266 | Gaim::Account account | |
| 267 | ||
| 12784 | 268 | void |
| 11118 | 269 | gaim_accounts_delete(account) |
| 270 | Gaim::Account account | |
|
6595
cfd716049cd6
[gaim-migrate @ 7119]
Christian Hammond <chipx86@chipx86.com>
parents:
6551
diff
changeset
|
271 | |
| 12784 | 272 | void |
| 11118 | 273 | gaim_accounts_reorder(account, new_index) |
| 274 | Gaim::Account account | |
| 275 | size_t new_index | |
| 6508 | 276 | |
| 277 | void | |
| 11118 | 278 | gaim_accounts_get_all() |
| 279 | PREINIT: | |
| 280 | GList *l; | |
| 281 | PPCODE: | |
| 282 | for (l = gaim_accounts_get_all(); l != NULL; l = l->next) { | |
| 283 | XPUSHs(sv_2mortal(gaim_perl_bless_object(l->data, "Gaim::Account"))); | |
| 284 | } | |
| 285 | ||
| 286 | void | |
| 287 | gaim_accounts_get_all_active() | |
| 6508 | 288 | PREINIT: |
| 13835 | 289 | GList *list, *iter; |
| 6508 | 290 | PPCODE: |
| 13835 | 291 | list = gaim_accounts_get_all_active(); |
| 292 | for (iter = gaim_accounts_get_all_active(); iter != NULL; iter = iter->next) { | |
| 293 | XPUSHs(sv_2mortal(gaim_perl_bless_object(iter->data, "Gaim::Account"))); | |
| 11118 | 294 | } |
| 13835 | 295 | g_list_free(list); |
| 6508 | 296 | |
| 11118 | 297 | Gaim::Account |
| 298 | gaim_accounts_find(name, protocol) | |
| 299 | const char * name | |
| 300 | const char * protocol | |
| 301 | ||
| 12784 | 302 | void |
| 11118 | 303 | gaim_accounts_set_ui_ops(ops) |
| 304 | Gaim::Account::UiOps ops | |
| 305 | ||
| 12784 | 306 | Gaim::Account::UiOps |
| 11118 | 307 | gaim_accounts_get_ui_ops() |
| 308 | ||
|
13350
3f9b44862451
[gaim-migrate @ 15721]
Daniel Atallah <datallah@pidgin.im>
parents:
12784
diff
changeset
|
309 | void * |
| 11118 | 310 | gaim_accounts_get_handle() |
| 311 | ||
| 12784 | 312 | void |
| 11118 | 313 | gaim_accounts_init() |
| 314 | ||
| 12784 | 315 | void |
| 11118 | 316 | gaim_accounts_uninit() |