changeset 9687:1769cb1261be

[gaim-migrate @ 10539] [ 986151 ] Buddy Icon reappears after hiding If we weren't in a string freeze, I'd make an option in the "Options" menu to restore the buddy icon, but for now this works. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Thu, 05 Aug 2004 23:21:55 +0000
parents 882e7e423457
children af6bf08d1e67
files src/gtkconv.c src/gtkconv.h
diffstat 2 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconv.c	Thu Aug 05 23:04:16 2004 +0000
+++ b/src/gtkconv.c	Thu Aug 05 23:21:55 2004 +0000
@@ -2461,6 +2461,7 @@
 	gtkconv->u.im->icon = NULL;
 	gtkconv->u.im->anim = NULL;
 	gtkconv->u.im->iter = NULL;
+	gtkconv->u.im->show_icon = FALSE;
 }
 
 static void
@@ -4331,6 +4332,7 @@
 
 	setup_im_buttons(conv, gtkconv->bbox);
 	gtkconv->u.im->animate = gaim_prefs_get_bool("/gaim/gtk/conversations/im/animate_buddy_icons");
+	gtkconv->u.im->show_icon = TRUE;
 
 	/*
 	 * Focus for IM windows should be as follows:
@@ -5658,6 +5660,10 @@
 	g_return_if_fail(gaim_conversation_get_type(conv) == GAIM_CONV_IM);
 
 	gtkconv = GAIM_GTK_CONVERSATION(conv);
+	
+	if (!gtkconv->u.im->show_icon)
+		return;
+
 	account = gaim_conversation_get_account(conv);
 	if(account && account->gc)
 		prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(account->gc->prpl);
--- a/src/gtkconv.h	Thu Aug 05 23:04:16 2004 +0000
+++ b/src/gtkconv.h	Thu Aug 05 23:21:55 2004 +0000
@@ -114,6 +114,7 @@
 
 	/* Buddy icon stuff */
 	GtkWidget *icon;
+	gboolean show_icon;
 	gboolean animate;
 	GdkPixbufAnimation *anim;
 	GdkPixbufAnimationIter *iter;