Merge lp:~mmcg069/software-center/Bug830218 into lp:software-center

Proposed by Matthew Paul Thomas
Status: Merged
Merged at revision: 2185
Proposed branch: lp:~mmcg069/software-center/Bug830218
Merge into: lp:software-center
Diff against target: 25 lines (+9/-0) (has conflicts)
1 file modified
softwarecenter/ui/gtk3/widgets/buttons.py (+9/-0)
Text conflict in softwarecenter/ui/gtk3/widgets/buttons.py
To merge this branch: bzr merge lp:~mmcg069/software-center/Bug830218
Reviewer Review Type Date Requested Status
Michael Vogt Pending
Review via email: mp+72409@code.launchpad.net

Description of the change

Removes category info from the home screen tiles, because it's raw data that doesn't match the USC categories and subcategories.

Bug 831024 covers adding properly formatted category info.

To post a comment you must log in.
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks :) I saw this branch and was playing with a fix that would actually extract the right category from the DB. I have code for this here:
 lp:~mvo/software-center/proper-but-slow-get-categories-string
But its a bit slow, so either needs improvement or delayed loading and updates as results arrive.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'softwarecenter/ui/gtk3/widgets/buttons.py'
2--- softwarecenter/ui/gtk3/widgets/buttons.py 2011-08-22 09:35:39 +0000
3+++ softwarecenter/ui/gtk3/widgets/buttons.py 2011-08-22 11:47:36 +0000
4@@ -144,12 +144,21 @@
5 self.title.set_ellipsize(Pango.EllipsizeMode.END)
6 self.content_right.pack_start(self.title, False, False, 0)
7
8+<<<<<<< TREE
9 if categories is not None:
10 self.category = Gtk.Label.new('<span font_desc="Italic %i">%s</span>' % (em(0.45), categories))
11 self.category.set_use_markup(True)
12 self.category.set_alignment(0.0, 0.0)
13 self.category.set_ellipsize(Pango.EllipsizeMode.END)
14 self.content_right.pack_start(self.category, False, False, 4)
15+=======
16+ #~ if category is not None:
17+ #~ self.category = Gtk.Label.new('<span font_desc="Italic %i">%s</span>' % (em(0.45), category))
18+ #~ self.category.set_use_markup(True)
19+ #~ self.category.set_alignment(0.0, 0.0)
20+ #~ self.category.set_ellipsize(Pango.EllipsizeMode.END)
21+ #~ self.content_right.pack_start(self.category, False, False, 4)
22+>>>>>>> MERGE-SOURCE
23
24 if stats is not None:
25 self.stars = Star()