/soc/2015/igor.gajowiak/chatlog: 6fe3fd6900c2: Added skipping ma...

Igor Gajowiak <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: 6fe3fd6900c256c74b0caa2c8612eb4cc5ab3d29
Author:	 Igor Gajowiak <[email protected]>
Date:	 2015-07-27 23:09 +0200
Branch:	 default
URL: https://hg.pidgin.im/soc/2015/igor.gajowiak/chatlog/rev/6fe3fd6900c2

Description:

Added skipping marking messages as seen if conversation has no focus during tab switching.

diffstat:

 pidgin/gtkconv.c |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (20 lines):

diff --git a/pidgin/gtkconv.c b/pidgin/gtkconv.c
--- a/pidgin/gtkconv.c
+++ b/pidgin/gtkconv.c
@@ -10336,7 +10336,15 @@ switch_conv_cb(GtkNotebook *notebook, Gt
 	/* clear unseen flag if conversation is not hidden */
 	if(!pidgin_conv_is_hidden(gtkconv)) {
 		gtkconv_set_unseen(gtkconv, PIDGIN_UNSEEN_NONE);
-		mark_all_messages_as_seen(gtkconv);
+
+		/*
+		 * We need to check this because during program closing
+		 * every tab becomes visible for a short time.
+		 *
+		 * Any idea how to do it better?
+		 */
+		if (pidgin_conv_has_focus(conv))
+			mark_all_messages_as_seen(gtkconv);
 	}
 
 	/* Update the menubar */

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.