My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
  Advanced search   Search tips   Subscriptions
Issue 676: Strange menu gap in some apps on Gnome3
4 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----

Sign in to add a comment
Reported by, Oct 30, 2011
See attached screenshots.  In most applications, there is a gap where the app menu used to be.   This is using the latest gnome-3 branch.
226 KB   View   Download
76.7 KB   View   Download
Oct 30, 2011
the same here.
Dec 7, 2011
There is a fix for this:

Under /gtk-menubar.vala change lines 73 and 74 from: natural = 10 and minimal = 10 to natural = 0 and minimal = 0. Can you, the Global Menu guys, please push this fix? Thanks!
Dec 7, 2011
Project Member #3
Last time I did set the height to zero. GTK3 started to issue warnings like crazy every time a window is resized; the warnings will be written to .xsession-errors on some systems and gradually fill up the harddrive. 

10 is the minimal that won't trigger those warnings. 

Do you get these warnings when make this change and run a program from commandline?

Dec 8, 2011
Yes, I get warnings, but not a huge amount...
Dec 10, 2011
Take care, it seems these warnings can sometimes lead to segfault.

I investigated the GTK code. When GTK calculates the height (or width) of the menubar, it takes the requested height, and it subtracts the margins defined by the theme. So, if you request a height of 0 pixel, you get (that's an example) :
0 - 5 = -5px. Sure, it is a wrong size for a menubar.

The easy way to fix this is to overload the theme. Create the file $HOME/.config/gtk-3.0/gtk.css with this content :

.menubar .menuitem {
    padding: 0;

Now, you can put 0 in gtk-menubar.vala with no warnings.
Dec 11, 2011
Project Member #6
Im wondering if it is possible to override the default theme css in the GTK module, or just modify them for the particular menu itme widget created.
Jan 9, 2012
I have the same issue, but i haven't really understood how to fix this, is gtk-menubar.vala a file? if so i can't find it anywhere
Jan 12, 2012
gtk-menubar.vala is in the gnome-globalmenu source code.  I tried editing myself and recompiling/reinstalling, but it didn't seem to fix it for me.
Jan 12, 2012
Project Member #9

This is the line I suspect you shall change. make both 0.

Jan 12, 2012
Yes, that's the change I made, but it didn't seem to fix anything.
Jan 13, 2012
Scratch that last comment.  I've since rebooted and it now seems to be working correctly.
Feb 1, 2012
stop post simmilar issues becouse of is dificult to find solutions in comments
issue 675
Sign in to add a comment

Powered by Google Project Hosting