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 616951 - Fix panel icon overdraw
Fix panel icon overdraw
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 612974 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-04-27 14:37 UTC by Colin Walters
Modified: 2010-04-27 17:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[panel] Fix allocation positioning for boxes (2.51 KB, patch)
2010-04-27 14:37 UTC, Colin Walters
committed Details | Review
[panel] Remove hardcoded uses of PANEL_HEIGHT (1.72 KB, patch)
2010-04-27 14:37 UTC, Colin Walters
committed Details | Review
[panel] Remove vertical padding for panel-button (1.93 KB, patch)
2010-04-27 14:37 UTC, Colin Walters
committed Details | Review

Description Colin Walters 2010-04-27 14:37:16 UTC
The first two patches are just code cleanups while I was debugging.
The third patch is the actual fix.
Comment 1 Colin Walters 2010-04-27 14:37:18 UTC
Created attachment 159695 [details] [review]
[panel] Fix allocation positioning for boxes

This change doesn't actually affect anything visibly, but
using the absolute coordinates of our allocation box in allocate()
is wrong; we should be positioning our children at 0,0 and using
width/height as a reference.
Comment 2 Colin Walters 2010-04-27 14:37:22 UTC
Created attachment 159696 [details] [review]
[panel] Remove hardcoded uses of PANEL_HEIGHT

It's cleaner to just y_fill.
Comment 3 Colin Walters 2010-04-27 14:37:25 UTC
Created attachment 159697 [details] [review]
[panel] Remove vertical padding for panel-button

This fixes the status menu requesting 27 pixels, which causes
the slicer for the icon to overdraw.
Comment 4 Dan Winship 2010-04-27 15:12:42 UTC
*** Bug 612974 has been marked as a duplicate of this bug. ***
Comment 5 Dan Winship 2010-04-27 15:14:48 UTC
Comment on attachment 159696 [details] [review]
[panel] Remove hardcoded uses of PANEL_HEIGHT

i *think* this one is correct, but see next review
Comment 6 Dan Winship 2010-04-27 15:17:28 UTC
Comment on attachment 159697 [details] [review]
[panel] Remove vertical padding for panel-button

this fixes the current-app indicator, but it makes the "Activities" button one pixel too short (so that there's a black line between the bottom of the highlighted button and the top of the dash), and the clock is even worse. Looking carefully, it seems like the clock is actually broken even without the patch; it doesn't extend all the way to the top of the panel. This patch seems to center it without fixing its height, so it now doesn't reach either the top or bottom edge.
Comment 7 Colin Walters 2010-04-27 17:09:28 UTC
Comment on attachment 159695 [details] [review]
[panel] Fix allocation positioning for boxes

Attachment 159695 [details] pushed as 3715109 - [panel] Fix allocation positioning for boxes
Comment 8 Colin Walters 2010-04-27 17:09:57 UTC
Comment on attachment 159696 [details] [review]
[panel] Remove hardcoded uses of PANEL_HEIGHT

Attachment 159696 [details] pushed as 704354b - [panel] Remove hardcoded uses of PANEL_HEIGHT
Comment 9 Colin Walters 2010-04-27 17:10:41 UTC
Attachment 159697 [details] pushed as 0513297 - [panel] Remove vertical padding for panel-button