changeset 26932:04af21d4be27

Set PurpleConversation unseen-(count|state) in gtkconv_set_unseen, as conv_set_unseen only sets it for hidden_conv conversations. Fixes #8358 committer: Paul Aurich <paul@darkrain42.org>
author jcs@jcs.org
date Fri, 08 May 2009 03:54:58 +0000
parents e7819fa37224
children edff8cc58d66 0b97f73fa3d2 1ef01afd08bc
files COPYRIGHT ChangeLog pidgin/gtkconv.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/COPYRIGHT	Fri May 08 02:58:33 2009 +0000
+++ b/COPYRIGHT	Fri May 08 03:54:58 2009 +0000
@@ -424,6 +424,7 @@
 Lex Spoon
 Chris Stafford
 Kevin Stange
+Joshua Stein
 Jakub Steiner
 Richard Stellingwerff
 Charlie Stockman
--- a/ChangeLog	Fri May 08 02:58:33 2009 +0000
+++ b/ChangeLog	Fri May 08 03:54:58 2009 +0000
@@ -65,6 +65,8 @@
 	* The nicks of the persons who leave the chatroom are italicized in the
 	  chat's conversation history. The nicks are un-italicized when they
 	  rejoin.
+	* Always set unseen-count and unseen-state on conversations.
+	  (Joshua Stein)
 
 	Finch:
 	* The hardware cursor is updated correctly. This will be useful
--- a/pidgin/gtkconv.c	Fri May 08 02:58:33 2009 +0000
+++ b/pidgin/gtkconv.c	Fri May 08 03:54:58 2009 +0000
@@ -8324,6 +8324,9 @@
 			gtkconv->unseen_state = state;
 	}
 
+	purple_conversation_set_data(gtkconv->active_conv, "unseen-count", GINT_TO_POINTER(gtkconv->unseen_count));
+	purple_conversation_set_data(gtkconv->active_conv, "unseen-state", GINT_TO_POINTER(gtkconv->unseen_state));
+
 	purple_conversation_update(gtkconv->active_conv, PURPLE_CONV_UPDATE_UNSEEN);
 }