changeset 15151:45a939f70f1d

[gaim-migrate @ 17936] Added buddy-got-login-time signal which is emitted when the login time for a buddy is known committer: Tailor Script <tailor@pidgin.im>
author Evan Schoenberg <evan.s@dreskin.net>
date Sun, 10 Dec 2006 05:33:44 +0000
parents a56c93f12f8f
children d1014e749b4e
files ChangeLog.API libgaim/blist.c libgaim/prpl.c
diffstat 3 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog.API	Sun Dec 10 05:06:01 2006 +0000
+++ b/ChangeLog.API	Sun Dec 10 05:33:44 2006 +0000
@@ -397,6 +397,7 @@
 	* "buddy-status-changed"
 	* "buddy-idle-changed": A buddy's idle status changed.
 	* "buddy-icon-changed"
+	* "buddy-got-login-time": The login time for a buddy is now known
 	* "displaying-userinfo"
 	* "gtkblist-hiding"
 	* "gtkblist-unhiding"
--- a/libgaim/blist.c	Sun Dec 10 05:06:01 2006 +0000
+++ b/libgaim/blist.c	Sun Dec 10 05:33:44 2006 +0000
@@ -2706,6 +2706,11 @@
 						 gaim_value_new(GAIM_TYPE_SUBTYPE,
 										GAIM_SUBTYPE_BLIST_BUDDY));
 
+	gaim_signal_register(handle, "buddy-got-login-time",
+						 gaim_marshal_VOID__POINTER, NULL, 1,
+						 gaim_value_new(GAIM_TYPE_SUBTYPE,
+										GAIM_SUBTYPE_BLIST_BUDDY));
+
 	gaim_signal_register(handle, "buddy-added",
 						 gaim_marshal_VOID__POINTER, NULL, 1,
 						 gaim_value_new(GAIM_TYPE_SUBTYPE,
--- a/libgaim/prpl.c	Sun Dec 10 05:06:01 2006 +0000
+++ b/libgaim/prpl.c	Sun Dec 10 05:33:44 2006 +0000
@@ -117,6 +117,8 @@
 	presence = gaim_buddy_get_presence(buddy);
 
 	gaim_presence_set_login_time(presence, login_time);
+
+	gaim_signal_emit(gaim_blist_get_handle(), "buddy-got-login-time", buddy);
 }
 
 void