Mercurial > pidgin
diff pidgin/gtkconv.c @ 15984:50d949d6bda2
don't show the typing animation when the typing conversation isn't the active tab
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Wed, 04 Apr 2007 10:18:17 +0000 |
parents | c6e563dfaa7a |
children | 37d928a6579e |
line wrap: on
line diff
--- a/pidgin/gtkconv.c Mon Apr 02 00:38:21 2007 +0000 +++ b/pidgin/gtkconv.c Wed Apr 04 10:18:17 2007 +0000 @@ -3105,8 +3105,13 @@ static gboolean typing_animation(gpointer data) { PidginConversation *gtkconv = data; + PidginWindow *gtkwin = gtkconv->win; const char *stock_id = NULL; - PidginWindow *gtkwin = gtkconv->win; + + if(gtkconv != pidgin_conv_window_get_active_gtkconv(gtkwin)) { + return FALSE; + } + switch (rand() % 5) { case 0: stock_id = PIDGIN_STOCK_ANIMATION_TYPING0;