Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAjay Garg <ajay@activitycentral.com>2012-08-13 05:57:34 (GMT)
committer Ajay Garg <ajay@activitycentral.com>2012-08-13 05:57:34 (GMT)
commitd9426b3b0be8249110d3073015d2514402734930 (patch)
tree1b3db557b1a89150e880ef0236e7f11c2ed45516
parentf69e10f18ef9ba35e3ec11b62291f10c34f7e366 (diff)
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 :)
-rw-r--r--rpms/sugar/0121-Multi-Select-REVIEW-For-the-first-10-journal-items-d.patch34
1 files changed, 34 insertions, 0 deletions
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 <ajay@activitycentral.com>
+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 <ajay@activitycentral.com>
+---
+
+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
+