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 522730 - Menu Bar is fixed at 32 pixel height
Menu Bar is fixed at 32 pixel height
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: menu
2.22.x
Other Linux
: Normal normal
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-03-16 09:43 UTC by Nguyen Thai Ngoc Duy
Modified: 2009-08-12 10:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (451 bytes, patch)
2008-04-09 16:25 UTC, Matt Keenan (IRC:MattMan)
none Details | Review

Description Nguyen Thai Ngoc Duy 2008-03-16 09:43:00 UTC
I usually set my horizontal panel width 24 pixels. With new gnome-panel release, menu bar will request at least 32 pixels, making the panel ridiculously big. A quick search over the source shows there is a constant ICON_SIZE, which is set 32. I did not dig further though
Comment 1 Matt Keenan (IRC:MattMan) 2008-04-09 16:25:31 UTC
Created attachment 108936 [details] [review]
Patch

A simple fix to allow menu bar applet to be resizable is to call  :
   panel_widget_set_applet_size_constrained()
when setting up the applet in panel-menu-bar.c.

Patch attached applies to trunk achieves this.

Only draw back is the image/icon dosen't resize, not sure why as I thought the
current theme handled this.
Comment 2 Vincent Untz 2008-04-09 22:01:21 UTC
Another fix is to change the icon of the menu bar to not be of the same size as the one in the menu.

On the other hand, it makes sense to have this icon of the same size as the one in the menu, so it could well be WONTFIX. Just keep sane icon sizes... (there's a patch in opensuse to change the size, eg).
Comment 3 Vincent Untz 2009-08-12 10:29:56 UTC
(In reply to comment #2)
> Another fix is to change the icon of the menu bar to not be of the same size as
> the one in the menu.

Did it this way. We already had the infrastructure for this anyway.