changeset 3549:face765b6a9d

[gaim-migrate @ 3624] the last patch fixed most of the problems with typing notification. this finishes the job. thanks faceprint committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Wed, 25 Sep 2002 13:19:44 +0000
parents ff62b03bee6d
children e9b2003ee562
files src/conversation.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/conversation.c	Wed Sep 25 07:22:28 2002 +0000
+++ b/src/conversation.c	Wed Sep 25 13:19:44 2002 +0000
@@ -1066,8 +1066,8 @@
 
 	if (c && (!(misc_options & OPT_MISC_STEALTH_TYPING)) && !c->is_chat) {
 		char *txt = gtk_editable_get_chars(GTK_EDITABLE(c->entry), 0, -1);
-		if ((strlen(txt) == 0  && gdk_keyval_to_unicode(event->keyval) && isprint(event->keyval)) ||
-		    (c->type_again != 0 && time(NULL) > c->type_again)) {
+		if (gdk_keyval_to_unicode(event->keyval) && 
+			(strlen(txt) == 0 || (c->type_again != 0 && time(NULL) > c->type_again))) {
 			int timeout = serv_send_typing(c->gc, c->name, TRUE);
 			if (timeout)
 				c->type_again = time(NULL) + timeout;