# HG changeset patch # User Luke Schierer # Date 1032935970 0 # Node ID 9e0e21e7409f119beb835798baf89768c7920d98 # Parent 6df8afca9bce4dec36c33d73478aff4bed3df4bf [gaim-migrate @ 3622] typing notification fixes from faceprint! committer: Tailor Script diff -r 6df8afca9bce -r 9e0e21e7409f src/conversation.c --- a/src/conversation.c Wed Sep 25 06:02:11 2002 +0000 +++ b/src/conversation.c Wed Sep 25 06:39:30 2002 +0000 @@ -1066,7 +1066,7 @@ 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 && event->keyval < 256 && isprint(event->keyval)) || + if ((strlen(txt) == 0 && gdk_keyval_to_unicode(event->keyval) && isprint(event->keyval)) || (c->type_again != 0 && time(NULL) > c->type_again)) { int timeout = serv_send_typing(c->gc, c->name, TRUE); if (timeout) @@ -1080,6 +1080,7 @@ serv_send_typing(c->gc, c->name, FALSE); } else if (GTK_OLD_EDITABLE(c->entry)->selection_start_pos == 0) { if (GTK_OLD_EDITABLE(c->entry)->selection_end_pos == strlen(txt) && + strlen(txt) > 0 && (event->keyval == GDK_BackSpace || event->keyval == GDK_Delete)) serv_send_typing(c->gc, c->name, FALSE); }