From: <sa...@us...> - 2006-12-12 22:44:35
|
Revision: 17976 http://svn.sourceforge.net/gaim/?rev=17976&view=rev Author: sadrul Date: 2006-12-12 14:44:33 -0800 (Tue, 12 Dec 2006) Log Message: ----------- This may or may not make typing-notifications to be sent. I'll test when I get home. Modified Paths: -------------- trunk/console/gntconv.c Modified: trunk/console/gntconv.c =================================================================== --- trunk/console/gntconv.c 2006-12-12 21:55:45 UTC (rev 17975) +++ trunk/console/gntconv.c 2006-12-12 22:44:33 UTC (rev 17976) @@ -140,7 +140,27 @@ 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; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |