changeset 11434:f191b5bc199b

[gaim-migrate @ 13671] Patch from Kevin Stange to fix the open and close doors on log in and out committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Sat, 03 Sep 2005 15:01:56 +0000
parents 0cad723a5a1b
children 1a2eaba2bc13
files src/blist.c src/gtkblist.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/blist.c	Sat Sep 03 14:07:47 2005 +0000
+++ b/src/blist.c	Sat Sep 03 15:01:56 2005 +0000
@@ -762,6 +762,7 @@
 		!gaim_status_is_online(old_status)) {
 		int old_present = buddy->present;
 
+		buddy->present = GAIM_BUDDY_SIGNING_ON;
 		gaim_signal_emit(gaim_blist_get_handle(), "buddy-signed-on", buddy);
 		if (old_present != GAIM_BUDDY_SIGNING_OFF) {
 			((GaimContact*)((GaimBlistNode*)buddy)->parent)->online++;
--- a/src/gtkblist.c	Sat Sep 03 14:07:47 2005 +0000
+++ b/src/gtkblist.c	Sat Sep 03 15:01:56 2005 +0000
@@ -4007,6 +4007,7 @@
 	buddy = gaim_contact_get_priority_buddy(contact);
 
 	if (buddy && (gaim_presence_is_online(buddy->presence) ||
+		buddy->present == GAIM_BUDDY_SIGNING_OFF ||
 		(gaim_account_is_connected(buddy->account) &&
 			gaim_prefs_get_bool("/gaim/gtk/blist/show_offline_buddies")) ||
 			gaim_blist_node_get_bool(node, "show_offline")))
@@ -4064,6 +4065,7 @@
 
 	if (gtkparentnode->contact_expanded &&
 		(gaim_presence_is_online(buddy->presence) ||
+		buddy->present == GAIM_BUDDY_SIGNING_OFF ||
 			(gaim_account_is_connected(buddy->account) &&
 				gaim_prefs_get_bool("/gaim/gtk/blist/show_offline_buddies")) ||
 			gaim_blist_node_get_bool(node->parent, "show_offline")))