Bug 2107

Summary: [Hob2] Primary action button background should scale
Product: [Build System, Metadata & Runtime] Hob Reporter: Giulia <giulia>
Component: hobAssignee: Joshua Lock - Disabled <josh>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: belen.barros.pena, giulia, jessica.zhang, jiajun.xu, josh, poky.bs.watcher, poky.watcher
Version: 1.2   
Target Milestone: 1.2 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
Example of primary buttons with different label length none

Description Giulia 2012-03-14 17:17:59 UTC
Created attachment 361 [details]
Example of primary buttons with different label length

Primary action button background is not flexible: it should scale to accommodate different label lengths (see attachment). The rule is to make the button background 49px on the left and 49px on the right wider than the text label.
Comment 1 Shane Wang 2012-03-16 02:01:26 UTC
Josh, can you help on that since you own the similar bug 2015?
Comment 2 Joshua Lock - Disabled 2012-03-22 23:21:35 UTC
The problem we're having here is using gtk.Table for our layout, which uses a fixed size & placement layout policy.

For the short term I've developed a patch which changes the font size to be slightly smaller ensuring it will fit all label sizes by default.

Long term we should switch to using proportional layout schemes by building up gtk.Box subclasses.
Comment 3 Joshua Lock - Disabled 2012-03-23 17:36:20 UTC
Two patches merged which implement the proposed workaround:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ac53520823c37df557bffb738dfd74fe08c495be

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=78fb40958a1b4ea88756f6d966c0ddfd3a543e6e

Bug #2170 filed to track the switch to a non-fixed layout
Comment 4 Giulia 2012-03-27 14:53:46 UTC
Short term solution works.

Long term it should switch to using proportional layout schemes by building up gtk.Box subclasses.