# HG changeset patch # User Sadrul Habib Chowdhury # Date 1165963473 0 # Node ID b94956393b631bce87c6605afeb7ba29d140ad2a # Parent ce2212022a6b3a2231ce91db0f6062fd83f71ca0 [gaim-migrate @ 17976] This may or may not make typing-notifications to be sent. I'll test when I get home. committer: Tailor Script diff -r ce2212022a6b -r b94956393b63 console/gntconv.c --- 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; }