New issue 676 by bendavi...@gmail.com: Strange menu gap in some apps on
Gnome3
http://code.google.com/p/gnome2-globalmenu/issues/detail?id=676
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.
Attachments:
ubuntu-software-center.png 226 KB
Nautilus.png 76.7 KB
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!
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?
Yes, I get warnings, but not a huge amount...
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.
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.
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
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.
https://github.com/gnome-globalmenu/gnome-globalmenu/blob/gnome-3/src/gtk-menubar.vala#L73
This is the line I suspect you shall change. make both 0.
Yes, that's the change I made, but it didn't seem to fix anything.
Scratch that last comment. I've since rebooted and it now seems to be
working correctly.
stop post simmilar issues becouse of is dificult to find solutions in
comments
issue 675