After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 682059 - New button is missing internal padding
New button is missing internal padding
Status: RESOLVED FIXED
Product: gnome-clocks
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Clocks maintainer(s)
Clocks maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-08-17 00:16 UTC by Allan Day
Modified: 2012-08-17 10:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add an 8 pixel paddingon each side of the button (892 bytes, patch)
2012-08-17 01:48 UTC, Maël Lavault
none Details | Review
patch (901 bytes, patch)
2012-08-17 09:26 UTC, Allan Day
accepted-commit_now Details | Review

Description Allan Day 2012-08-17 00:16:48 UTC
It is currently too narrow, with the edges too close to the label.

I'm pretty sure that this is a regression - the button used to be wider
Comment 1 Maël Lavault 2012-08-17 00:34:01 UTC
Padding was achieved by adding trailing spaces in the New string. That's dirty, let's add padding directly in the button widget.
Comment 2 Maël Lavault 2012-08-17 01:48:42 UTC
Created attachment 221540 [details] [review]
Add an 8 pixel paddingon each side of the button

Just added 8px on each side, don't know if it is right for you, there is only one line change, just modify the 8 with any number you want if it is not right.
Comment 3 Paolo Borelli 2012-08-17 07:51:44 UTC
The (In reply to comment #0)
> I'm pretty sure that this is a regression - the button used to be wider

Yes, previously we had a label with "  New  " (spaces included), but translators are not happt with this solution.


Mael's patch is the right way to do it, but I cannot find any guideline on which is the right amount of padding... I checked a few apps (boxes, contacts, etc) and it seems everyone is doing it differently.

Keep also in mind that in many languages the translation of "New" is not as short.


Allan, could you suggest what size to use?
Comment 4 Allan Day 2012-08-17 09:26:44 UTC
Created attachment 221562 [details] [review]
patch

It's cleaner to set a minimum size rather than specify padding. This way we can do it all within GtkButton, and we don't need to worry about longer strings when the label is translated.
Comment 5 Paolo Borelli 2012-08-17 09:51:01 UTC
Review of attachment 221562 [details] [review]:

looks good!
Comment 6 Seif Lotfy 2012-08-17 10:01:49 UTC
Ok merged Allan's patch.