pidgin: Distinguish no logs from really old logs (for Recent Log Activity sort)

Sun, 28 Feb 2010 19:15:03 +0000

author
Greg McNew <gmcnew@gmail.com>
date
Sun, 28 Feb 2010 19:15:03 +0000
changeset 29784
17baa4c9a8c5
parent 29783
96ab389c9181
child 29785
89123afa2e94

pidgin: Distinguish no logs from really old logs (for Recent Log Activity sort)

Closes #11466. Patch from Greg McNew.


committer: Paul Aurich <darkrain42@pidgin.im>

COPYRIGHT file | annotate | diff | comparison | revisions
ChangeLog file | annotate | diff | comparison | revisions
libpurple/log.c file | annotate | diff | comparison | revisions
--- a/COPYRIGHT	Sun Feb 28 19:09:20 2010 +0000
+++ b/COPYRIGHT	Sun Feb 28 19:15:03 2010 +0000
@@ -303,6 +303,7 @@
 Peter McCurdy
 Kurt McKee
 Torrey McMahon
+Greg McNew
 Robert McQueen
 Mihály Mészáros
 Robert Mibus
--- a/ChangeLog	Sun Feb 28 19:09:20 2010 +0000
+++ b/ChangeLog	Sun Feb 28 19:15:03 2010 +0000
@@ -15,8 +15,11 @@
 	* Use GtkStatusIcon for the docklet, providing better integration in
 	  notification area.
 	* Added UI for sending attentions (buzz, nudge) on supporting protocols.
-	* Make the search dialog unobtrusive in the conversation window (by making
-	  it look and behave like the search dialog in Firefox)
+	* Make the search dialog unobtrusive in the conversation window (by
+	  making it look and behave like the search dialog in Firefox)
+	* The Recent Log Activity sort method for the Buddy List now
+	  distinguishes between no activity and a small amount of activity
+	  in the distant past.  (Greg McNew)
 
 	Bonjour:
 	* Added support for IPv6. (Thanks to T_X for testing)
--- a/libpurple/log.c	Sun Feb 28 19:09:20 2010 +0000
+++ b/libpurple/log.c	Sun Feb 28 19:15:03 2010 +0000
@@ -302,7 +302,7 @@
 			}
 		}
 
-		score = (gint)score_double;
+		score = (gint) ceil(score_double);
 		g_hash_table_replace(logsize_users_decayed, lu, GINT_TO_POINTER(score));
 	}
 	return score;

mercurial