Update of /cvsroot/gaim/gaim/src
In directory usw-pr-cvs1:/tmp/cvs-serv30174/src
Modified Files:
conversation.c
Log Message:
typing notification fixes from faceprint!
Index: conversation.c
===================================================================
RCS file: /cvsroot/gaim/gaim/src/conversation.c,v
retrieving revision 1.379
retrieving revision 1.380
diff -u -d -r1.379 -r1.380
--- conversation.c 18 Sep 2002 17:06:27 -0000 1.379
+++ conversation.c 25 Sep 2002 06:39:30 -0000 1.380
@@ -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);
}
|