Ticket #1305 (assigned defect)
gtk.Image().set_from_icon_name() provides incorrectly scaled icon image
| Reported by: | garycmartin | Owned by: | alsroot |
|---|---|---|---|
| Priority: | Low | Milestone: | 0.86 |
| Component: | sugar | Version: | Git as of bugdate |
| Severity: | Unspecified | Keywords: | |
| Cc: | Distribution/OS: | Unspecified | |
| Bug Status: | Unconfirmed |
Description
Using:
image = gtk.Image()
image.set_from_icon_name('insert-table', -1)
... to generate an image to place into a gtk.Button (in the toolbar) seems to be acquiring an incorrectly sized icon. When sugar scaling is set to 75 the icon is too large, and when set to 100 it is a little too small.
Code exhibiting the issue can be seen at line 187:
http://git.sugarlabs.org/projects/write/repos/garycmartins-toolbar-clone/blobs/master/toolbar.py
Change History
Note: See
TracTickets for help on using
tickets.
