# HG changeset patch # User Nathan Walp # Date 1178765719 0 # Node ID af4181dde6fa2f7c64e39bf68f55380d1262aa5e # Parent b4720d213f316348f3552a33277a24d999f7a25a fix the typing animation so it doesn't stop animating once a conversation has gone from typing -> not typing -> typing (this has been bugging me at work, i thought maybe my rand() was stuck ;-) diff -r b4720d213f31 -r af4181dde6fa pidgin/gtkconv.c --- a/pidgin/gtkconv.c Wed May 09 23:44:49 2007 +0000 +++ b/pidgin/gtkconv.c Thu May 10 02:55:19 2007 +0000 @@ -3116,7 +3116,7 @@ } if (gtkwin->menu.typing_icon == NULL) { gtkwin->menu.typing_icon = gtk_image_new_from_stock(stock_id, GTK_ICON_SIZE_MENU); - pidgin_menu_tray_append(PIDGIN_MENU_TRAY(gtkwin->menu.tray), + pidgin_menu_tray_append(PIDGIN_MENU_TRAY(gtkwin->menu.tray), gtkwin->menu.typing_icon, _("User is typing...")); } else { @@ -3148,8 +3148,10 @@ return; if (purple_conv_im_get_typing_state(im) == PURPLE_NOT_TYPING) { - if (gtkconv->u.im->typing_timer != 0) + if (gtkconv->u.im->typing_timer != 0) { g_source_remove(gtkconv->u.im->typing_timer); + gtkconv->u.im->typing_timer = 0; + } return; }