changeset 17002:af4181dde6fa

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 ;-)
author Nathan Walp <nwalp@pidgin.im>
date Thu, 10 May 2007 02:55:19 +0000
parents b4720d213f31
children 667a5a24781c
files pidgin/gtkconv.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	}