# HG changeset patch # User Nathan Walp # Date 1175681897 0 # Node ID 50d949d6bda27ffe337df93bbf13c3021be5fb1e # Parent 20c0ab6ea00852ff1a30658cb83c5de49a637865 don't show the typing animation when the typing conversation isn't the active tab diff -r 20c0ab6ea008 -r 50d949d6bda2 pidgin/gtkconv.c --- 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;