Mercurial > pidgin
changeset 15187:b94956393b63
[gaim-migrate @ 17976]
This may or may not make typing-notifications to be sent. I'll test when I get home.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Tue, 12 Dec 2006 22:44:33 +0000 |
parents | ce2212022a6b |
children | fc4d6f704d46 |
files | console/gntconv.c |
diffstat | 1 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/console/gntconv.c Tue Dec 12 21:55:45 2006 +0000 +++ b/console/gntconv.c Tue Dec 12 22:44:33 2006 +0000 @@ -140,6 +140,26 @@ return FALSE; return TRUE; } + else + { + gboolean first = !gnt_entry_get_text(GNT_ENTRY(ggconv->entry)); + if (gaim_prefs_get_bool("/gaim/gnt/conversations/notify_typing")) { + /* Xerox'ed */ + GaimConversation *conv = ggconv->active_conv; + GaimConvIm *im = GAIM_CONV_IM(conv); + + gaim_conv_im_stop_send_typed_timeout(im); + gaim_conv_im_start_send_typed_timeout(im); + if (first || (gaim_conv_im_get_type_again(im) != 0 && + time(NULL) > gaim_conv_im_get_type_again(im))) { + unsigned int timeout; + timeout = serv_send_typing(gaim_conversation_get_gc(conv), + gaim_conversation_get_name(conv), + GAIM_TYPING); + gaim_conv_im_set_type_again(im, timeout); + } + } + } return FALSE; }