Merge lp:~evfool/software-center/expandlatest into lp:software-center

Proposed by Robert Roth
Status: Merged
Merged at revision: 1669
Proposed branch: lp:~evfool/software-center/expandlatest
Merge into: lp:software-center
Diff against target: 23 lines (+6/-1)
1 file modified
softwarecenter/view/historypane.py (+6/-1)
To merge this branch: bzr merge lp:~evfool/software-center/expandlatest
Reviewer Review Type Date Requested Status
Gary Lasker (community) Approve
Review via email: mp+56074@code.launchpad.net

Description of the change

Expand the most recent day with events from history (LP: #644438).

To post a comment you must log in.
Revision history for this message
Gary Lasker (gary-lasker) wrote :

Nice fix, thank you Robert!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'softwarecenter/view/historypane.py'
2--- softwarecenter/view/historypane.py 2011-03-31 00:54:51 +0000
3+++ softwarecenter/view/historypane.py 2011-04-03 12:02:24 +0000
4@@ -248,7 +248,7 @@
5
6 def update_view(self):
7 self.store_filter.refilter()
8-
9+ self.view.collapse_all()
10 # Expand all the matching rows
11 if self.searchentry.get_text():
12 self.view.expand_all()
13@@ -259,6 +259,11 @@
14 while day is not None:
15 self.visible_changes += self.store_filter.iter_n_children(day)
16 day = self.store_filter.iter_next(day)
17+ day = self.store.get_iter_first()
18+ if day is not None:
19+ path = self.store.get_path(day)
20+ self.view.expand_row(path, False)
21+ self.view.scroll_to_cell(path)
22
23 self.emit('app-list-changed', self.visible_changes)
24