From d9426b3b0be8249110d3073015d2514402734930 Mon Sep 17 00:00:00 2001 From: Ajay Garg Date: Mon, 13 Aug 2012 05:57:34 +0000 Subject: Multi-Select REVIEW: For the first 10 journal-items, do not refresh at "20% interval". Instead, whenever the number of entries is greater than 10, the first refresh takes place at entry number 10, and thereafter the "20% interval" rule applies. Thanks Gary Martin :) --- diff --git a/rpms/sugar/0121-Multi-Select-REVIEW-For-the-first-10-journal-items-d.patch b/rpms/sugar/0121-Multi-Select-REVIEW-For-the-first-10-journal-items-d.patch new file mode 100644 index 0000000..dfbc969 --- /dev/null +++ b/rpms/sugar/0121-Multi-Select-REVIEW-For-the-first-10-journal-items-d.patch @@ -0,0 +1,34 @@ +From 804c1e98b10ee2b88e62fef9e5b0be171365e9c5 Mon Sep 17 00:00:00 2001 +From: Ajay Garg +Date: Mon, 13 Aug 2012 11:20:07 +0530 +Subject: [sugar PATCH] Multi-Select REVIEW: For the first 10 journal-items, do not + refresh at "20% interval". Instead, whenever the number of + entries is greater than 10, the first refresh takes place + at entry number 10, and thereafter the "20% interval" rule + applies. +Organization: Sugar Labs Foundation +Signed-off-by: Ajay Garg +--- + +Thanks Gary Martin :) + + + src/jarabe/journal/listview.py | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/src/jarabe/journal/listview.py b/src/jarabe/journal/listview.py +index ec2579a..daa2389 100644 +--- a/src/jarabe/journal/listview.py ++++ b/src/jarabe/journal/listview.py +@@ -638,7 +638,7 @@ class BaseListView(gtk.Bin): + + # Redraw, if this is the 20% interval. + twenty_percent_of_total_items = total_items / 5 +- if twenty_percent_of_total_items == 0: ++ if twenty_percent_of_total_items < 10: + return + + if (current_entry_number % twenty_percent_of_total_items) == 0: +-- +1.7.4.4 + -- cgit v0.9.1