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

Proposed by Robert Roth
Status: Merged
Merged at revision: 3136
Proposed branch: lp:~evfool/software-center/lp1034894
Merge into: lp:software-center
Diff against target: 15 lines (+3/-0)
1 file modified
softwarecenter/ui/gtk3/widgets/backforward.py (+3/-0)
To merge this branch: bzr merge lp:~evfool/software-center/lp1034894
Reviewer Review Type Date Requested Status
Michael Vogt Approve
Review via email: mp+121942@code.launchpad.net

Description of the change

Set the linked style class to the back and forward buttons as requested in bug #1034894.

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

Very nice!

review: Approve
Revision history for this message
Kiwinote (kiwinote) wrote :

Hi! Afaics this branch doesn't actually seem to fix the bug? (If it did it would only fix ltr layouts, not rtl layouts.) I have uploaded http://paste.ubuntu.com/1175521/ which is a drop-in replacement for backforward.py which serves as an example as to how one uses Gtk.STYLE_CLASS_LINKED correctly. The pastebin snippet isn't production ready, so please don't merge as is. Hope that helps.

Revision history for this message
Michael Vogt (mvo) wrote :

On Thu, Aug 30, 2012 at 10:15:22AM -0000, Kiwinote wrote:
> Hi! Afaics this branch doesn't actually seem to fix the bug? (If it did it would only fix ltr layouts, not rtl layouts.) I have uploaded http://paste.ubuntu.com/1175521/ which is a drop-in replacement for backforward.py which serves as an example as to how one uses Gtk.STYLE_CLASS_LINKED correctly. The pastebin snippet isn't production ready, so please don't merge as is. Hope that helps.

Oh, thanks a lot for noticing that! That sounds like we need to reopen
the bug then.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'softwarecenter/ui/gtk3/widgets/backforward.py'
--- softwarecenter/ui/gtk3/widgets/backforward.py 2012-05-30 18:39:55 +0000
+++ softwarecenter/ui/gtk3/widgets/backforward.py 2012-08-29 20:47:20 +0000
@@ -61,8 +61,11 @@
6161
62 context = self.left.get_style_context()62 context = self.left.get_style_context()
63 context.add_class("backforward-left-button")63 context.add_class("backforward-left-button")
64 context.add_class(Gtk.STYLE_CLASS_LINKED)
65
64 context = self.right.get_style_context()66 context = self.right.get_style_context()
65 context.add_class("backforward-right-button")67 context.add_class("backforward-right-button")
68 context.add_class(Gtk.STYLE_CLASS_LINKED)
6669
67 self.set_button_atk_info_ltr()70 self.set_button_atk_info_ltr()
68 else:71 else: