From: <sa...@us...> - 2006-12-12 23:49:06
|
Revision: 17977 http://svn.sourceforge.net/gaim/?rev=17977&view=rev Author: sadrul Date: 2006-12-12 15:49:00 -0800 (Tue, 12 Dec 2006) Log Message: ----------- Make sure the typing notification shows up just once in the conversation window. Modified Paths: -------------- trunk/console/gntconv.c Modified: trunk/console/gntconv.c =================================================================== --- trunk/console/gntconv.c 2006-12-12 22:44:33 UTC (rev 17976) +++ trunk/console/gntconv.c 2006-12-12 23:49:00 UTC (rev 17977) @@ -244,8 +244,10 @@ scroll = gnt_text_view_get_lines_below(GNT_TEXT_VIEW(ggc->tv)); str = g_strdup_printf(_("\n%s is typing..."), gaim_conversation_get_name(conv)); - gnt_text_view_append_text_with_tag(GNT_TEXT_VIEW(ggc->tv), - str, GNT_TEXT_FLAG_DIM, "typing"); + /* Update an existing notification if there's one. */ + if (gnt_text_view_tag_change(GNT_TEXT_VIEW(ggc->tv), "typing", str, TRUE) == 0) + gnt_text_view_append_text_with_tag(GNT_TEXT_VIEW(ggc->tv), + str, GNT_TEXT_FLAG_DIM, "typing"); g_free(str); if (scroll <= 1) gnt_text_view_scroll(GNT_TEXT_VIEW(ggc->tv), 0); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |