Mercurial > pidgin.yaz
changeset 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 | 20c0ab6ea008 |
children | 87be53a26478 |
files | pidgin/gtkconv.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
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;