changeset 3097:58588d33a3ca

[gaim-migrate @ 3111] Bugfix to "Disable buddy icon animation by Luke Schierer committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Thu, 28 Mar 2002 17:44:48 +0000
parents 86696ebd0022
children 778e4e27c33e
files src/conversation.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/conversation.c	Tue Mar 26 01:56:06 2002 +0000
+++ b/src/conversation.c	Thu Mar 28 17:44:48 2002 +0000
@@ -3267,7 +3267,8 @@
 	frames = gdk_pixbuf_animation_get_frames(c->anim);
 	frame = g_list_nth_data(frames, c->frame);
 	delay = MAX(gdk_pixbuf_frame_get_delay_time(frame), 13);
-	c->icon_timer = gtk_timeout_add(delay * 10, redraw_icon, c);
+	if (c->anim)
+	    c->icon_timer = gtk_timeout_add(delay * 10, redraw_icon, c);
 }
 
 static int des_save_icon(GtkObject *obj, GdkEvent *e, struct conversation *c)
@@ -3522,6 +3523,8 @@
 {
 #if USE_PIXBUF
 	GList *c = conversations;
+	if (im_options & OPT_IM_HIDE_ICONS)
+		return;
 	while (c) {
 		if(im_options & OPT_IM_NO_ANIMATION)
 			stop_anim(NULL, c->data);