Mercurial > pidgin
comparison src/conversation.c @ 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 | eb364675bbe4 |
children | 4d967ccd797b |
comparison
equal
deleted
inserted
replaced
3096:86696ebd0022 | 3097:58588d33a3ca |
---|---|
3265 int delay; | 3265 int delay; |
3266 | 3266 |
3267 frames = gdk_pixbuf_animation_get_frames(c->anim); | 3267 frames = gdk_pixbuf_animation_get_frames(c->anim); |
3268 frame = g_list_nth_data(frames, c->frame); | 3268 frame = g_list_nth_data(frames, c->frame); |
3269 delay = MAX(gdk_pixbuf_frame_get_delay_time(frame), 13); | 3269 delay = MAX(gdk_pixbuf_frame_get_delay_time(frame), 13); |
3270 c->icon_timer = gtk_timeout_add(delay * 10, redraw_icon, c); | 3270 if (c->anim) |
3271 c->icon_timer = gtk_timeout_add(delay * 10, redraw_icon, c); | |
3271 } | 3272 } |
3272 | 3273 |
3273 static int des_save_icon(GtkObject *obj, GdkEvent *e, struct conversation *c) | 3274 static int des_save_icon(GtkObject *obj, GdkEvent *e, struct conversation *c) |
3274 { | 3275 { |
3275 gtk_widget_destroy(c->save_icon); | 3276 gtk_widget_destroy(c->save_icon); |
3520 | 3521 |
3521 void set_anim() | 3522 void set_anim() |
3522 { | 3523 { |
3523 #if USE_PIXBUF | 3524 #if USE_PIXBUF |
3524 GList *c = conversations; | 3525 GList *c = conversations; |
3526 if (im_options & OPT_IM_HIDE_ICONS) | |
3527 return; | |
3525 while (c) { | 3528 while (c) { |
3526 if(im_options & OPT_IM_NO_ANIMATION) | 3529 if(im_options & OPT_IM_NO_ANIMATION) |
3527 stop_anim(NULL, c->data); | 3530 stop_anim(NULL, c->data); |
3528 else | 3531 else |
3529 start_anim(NULL, c->data); | 3532 start_anim(NULL, c->data); |