Mercurial > pidgin
diff src/conversation.c @ 3001:87fff45fa36b
[gaim-migrate @ 3014]
Improved typing notification for Yahoo so that it sends and recieves notification that the user has stopped typing.
Also, combined serv_send_typing and serv_send_typing_stopped... expect the same with serv_got_typing_stopped.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Mon, 04 Mar 2002 04:18:02 +0000 |
parents | 82b1553d53d0 |
children | 2a1bae4efb92 |
line wrap: on
line diff
--- a/src/conversation.c Mon Mar 04 03:04:49 2002 +0000 +++ b/src/conversation.c Mon Mar 04 04:18:02 2002 +0000 @@ -903,7 +903,7 @@ char *txt = gtk_editable_get_chars(GTK_EDITABLE(c->entry), 0, -1); if ((strlen(txt) == 0 && event->keyval < 256 && isprint(event->keyval)) || (c->type_again != 0 && time(NULL) > c->type_again)) { - int timeout = serv_send_typing(c->gc, c->name); + int timeout = serv_send_typing(c->gc, c->name, TRUE); if (timeout) c->type_again = time(NULL) + timeout; else @@ -912,11 +912,11 @@ else if (strlen(txt) == 1) { if ((GTK_OLD_EDITABLE(c->entry)->current_pos == 1 && event->keyval == GDK_BackSpace) || (GTK_OLD_EDITABLE(c->entry)->current_pos == 0 && event->keyval == GDK_Delete)) - serv_send_typing_stopped(c->gc, c->name); + 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) && (event->keyval == GDK_BackSpace || event->keyval == GDK_Delete)) - serv_send_typing_stopped(c->gc, c->name); + serv_send_typing(c->gc, c->name, FALSE); } g_free(txt); } @@ -2347,7 +2347,6 @@ return FALSE; } /* Reset the title (if necessary) */ - debug_printf("resetting style\n"); if (c->is_chat) { g_free(name); c->typing_timeout = 0;