Mercurial > pidgin.yaz
comparison plugins/signals-test.c @ 10934:185ca25b5c7e
[gaim-migrate @ 12717]
sf patch #1197984, from Richard Laager
Add a buddy icon cached signal
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 24 May 2005 04:19:19 +0000 |
parents | 72a5babfa8b4 |
children | 50224ac8184d |
comparison
equal
deleted
inserted
replaced
10933:f43113333717 | 10934:185ca25b5c7e |
---|---|
70 gaim_debug_misc("signals test", "account-warned (%s, %s, %d)\n", | 70 gaim_debug_misc("signals test", "account-warned (%s, %s, %d)\n", |
71 gaim_account_get_username(account), warner, level); | 71 gaim_account_get_username(account), warner, level); |
72 } | 72 } |
73 | 73 |
74 /************************************************************************** | 74 /************************************************************************** |
75 * Buddy Icons signal callbacks | |
76 **************************************************************************/ | |
77 static void | |
78 buddy_icon_cached_cb(GaimBuddyIcon *icon, GaimBuddy *buddy, | |
79 const char *filename, const char *old_icon) | |
80 { | |
81 gaim_debug_misc("signals test", "buddy icon cached (%s, %s, %s)\n", | |
82 gaim_buddy_get_name(buddy), filename, old_icon); | |
83 } | |
84 | |
85 /************************************************************************** | |
75 * Buddy List subsystem signal callbacks | 86 * Buddy List subsystem signal callbacks |
76 **************************************************************************/ | 87 **************************************************************************/ |
77 static void | 88 static void |
78 buddy_away_cb(GaimBuddy *buddy, void *data) | 89 buddy_away_cb(GaimBuddy *buddy, void *data) |
79 { | 90 { |
473 void *blist_handle = gaim_blist_get_handle(); | 484 void *blist_handle = gaim_blist_get_handle(); |
474 void *conn_handle = gaim_connections_get_handle(); | 485 void *conn_handle = gaim_connections_get_handle(); |
475 void *conv_handle = gaim_conversations_get_handle(); | 486 void *conv_handle = gaim_conversations_get_handle(); |
476 void *accounts_handle = gaim_accounts_get_handle(); | 487 void *accounts_handle = gaim_accounts_get_handle(); |
477 void *ciphers_handle = gaim_ciphers_get_handle(); | 488 void *ciphers_handle = gaim_ciphers_get_handle(); |
489 void *buddy_icons_handle = gaim_buddy_icons_get_handle(); | |
478 | 490 |
479 /* Accounts subsystem signals */ | 491 /* Accounts subsystem signals */ |
480 gaim_signal_connect(accounts_handle, "account-connecting", | 492 gaim_signal_connect(accounts_handle, "account-connecting", |
481 plugin, GAIM_CALLBACK(account_connecting_cb), NULL); | 493 plugin, GAIM_CALLBACK(account_connecting_cb), NULL); |
482 gaim_signal_connect(accounts_handle, "account-away", | 494 gaim_signal_connect(accounts_handle, "account-away", |
485 plugin, GAIM_CALLBACK(account_setting_info_cb), NULL); | 497 plugin, GAIM_CALLBACK(account_setting_info_cb), NULL); |
486 gaim_signal_connect(accounts_handle, "account-set-info", | 498 gaim_signal_connect(accounts_handle, "account-set-info", |
487 plugin, GAIM_CALLBACK(account_set_info_cb), NULL); | 499 plugin, GAIM_CALLBACK(account_set_info_cb), NULL); |
488 gaim_signal_connect(accounts_handle, "account-warned", | 500 gaim_signal_connect(accounts_handle, "account-warned", |
489 plugin, GAIM_CALLBACK(account_warned_cb), NULL); | 501 plugin, GAIM_CALLBACK(account_warned_cb), NULL); |
502 | |
503 /* Buddy Icon subsystem signals */ | |
504 gaim_signal_connect(buddy_icons_handle, "buddy-icon-cached", | |
505 plugin, GAIM_CALLBACK(buddy_icon_cached_cb), NULL); | |
490 | 506 |
491 /* Buddy List subsystem signals */ | 507 /* Buddy List subsystem signals */ |
492 gaim_signal_connect(blist_handle, "buddy-away", | 508 gaim_signal_connect(blist_handle, "buddy-away", |
493 plugin, GAIM_CALLBACK(buddy_away_cb), NULL); | 509 plugin, GAIM_CALLBACK(buddy_away_cb), NULL); |
494 gaim_signal_connect(blist_handle, "buddy-back", | 510 gaim_signal_connect(blist_handle, "buddy-back", |