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 692970 - gdl-dock-item-button-image: center drawing of image
gdl-dock-item-button-image: center drawing of image
Status: RESOLVED OBSOLETE
Product: gdl
Classification: Other
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Anjuta maintainers
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2013-01-31 22:03 UTC by Carl-Anton Ingmarsson
Modified: 2021-06-19 08:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gdl-dock-item-button-image: center drawing of image (1.19 KB, patch)
2013-01-31 22:03 UTC, Carl-Anton Ingmarsson
reviewed Details | Review

Description Carl-Anton Ingmarsson 2013-01-31 22:03:28 UTC
See the attached patch. I don't really know why the division by four
works instead of a division by two as I would expect. But it seems to work
which I guess is the most important.
Comment 1 Carl-Anton Ingmarsson 2013-01-31 22:03:30 UTC
Created attachment 234938 [details] [review]
gdl-dock-item-button-image: center drawing of image
Comment 2 Sébastien Granjoux 2013-02-05 20:20:34 UTC
Review of attachment 234938 [details] [review]:

Thanks for your patch but I don't see the issue. The icons looks quite similar with or without your patch. I have taken some screen shoot when the icon is highlighted to be sure and I get the following:

The whole box is 24x24 pixels, there is a 2 pixels border and the rounded box is 11x11 pixels so there is no way to center it exactly.

With your patch I get 5 pixels between the rounded box and the top or the left border and obviously 4 between the rounded box and the bottom and right border.

Without your patch, I get the opposite: 4 pixels with the top and left border and 5 pixel with the bottom and right border.

Then, in your code your use ICON_SIZE but the rounded box is smaller, you should use its size: 11 pixels instead of ICON_SIZE. I think it could explain why you have divided the result by 4 instead of 2.

Do you get different result on your system? Perhaps it can depend of the theme.
Comment 3 André Klapper 2021-06-19 08:57:43 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version of gdl, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/gdl/-/issues/

Thank you for your understanding and your help.