diff plugins/ticker/ticker.c @ 11935:cb73483c9f63

[gaim-migrate @ 14226] Here are buddy-status-changed and buddy-idle-changed signals, to replace buddy-away, buddy-back, buddy-idle, and buddy-unidle. It it now possible to detect when a buddy goes from one away-state to another away-state without coming back in between. I'm not really sure I like how buddy-idle-changed works here, but it felt better to keep it consistent. It currently only fires on idle and unidle and not on just-more-idle, though that's easy to change if we decide plugins might want to know as idle time increases. I think I got all the doxygen and ChangeLog.API stuff, someone yell if I missed something. committer: Tailor Script <tailor@pidgin.im>
author Etan Reisner <pidgin@unreliablesource.net>
date Mon, 31 Oct 2005 22:02:30 +0000
parents 17142948653e
children d4698cf18986
line wrap: on
line diff
--- a/plugins/ticker/ticker.c	Mon Oct 31 20:35:59 2005 +0000
+++ b/plugins/ticker/ticker.c	Mon Oct 31 22:02:30 2005 +0000
@@ -228,7 +228,7 @@
 }
 
 static void
-away_cb(GaimBuddy *b)
+status_changed_cb(GaimBuddy *b, GaimStatus *os, GaimStatus *s)
 {
 	if(buddy_ticker_find_buddy(b))
 		buddy_ticker_set_pixmap(b);
@@ -279,10 +279,8 @@
 						plugin, GAIM_CALLBACK(buddy_signon_cb), NULL);
 	gaim_signal_connect(blist_handle, "buddy-signed-off",
 						plugin, GAIM_CALLBACK(buddy_signoff_cb), NULL);
-	gaim_signal_connect(blist_handle, "buddy-away",
-						plugin, GAIM_CALLBACK(away_cb), NULL);
-	gaim_signal_connect(blist_handle, "buddy-back",
-						plugin, GAIM_CALLBACK(away_cb), NULL);
+	gaim_signal_connect(blist_handle, "buddy-status-changed",
+						plugin, GAIM_CALLBACK(status_changed_cb), NULL);
 
 	if (gaim_connections_get_all())
 		buddy_ticker_show();