My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  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 bendavi...@gmail.com, 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.
ubuntu-software-center.png
226 KB   View   Download
Nautilus.png
76.7 KB   View   Download
Oct 30, 2011
#1 renerpa...@gmail.com
the same here.
Dec 7, 2011
#2 nilarimo...@gmail.com
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 rainwood...@gmail.com
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
#4 nilarimo...@gmail.com
Yes, I get warnings, but not a huge amount...
Dec 10, 2011
#5 rom...@ledisez.net
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 rainwood...@gmail.com
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
#7 gramaz...@gmail.com
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
#8 bendavi...@gmail.com
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 rainwood...@gmail.com
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.


Jan 12, 2012
#10 bendavi...@gmail.com
Yes, that's the change I made, but it didn't seem to fix anything.
Jan 13, 2012
#11 bendavi...@gmail.com
Scratch that last comment.  I've since rebooted and it now seems to be working correctly.
Feb 1, 2012
#12 oddgh...@mail.ru
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