Mercurial > pidgin
changeset 3547:9e0e21e7409f
[gaim-migrate @ 3622]
typing notification fixes from faceprint!
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Wed, 25 Sep 2002 06:39:30 +0000 |
parents | 6df8afca9bce |
children | ff62b03bee6d |
files | src/conversation.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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); }