Issue 676 in gnome2-globalmenu: Strange menu gap in some apps on Gnome3

7 views
Skip to first unread message

gnome2-g...@googlecode.com

unread,
Oct 30, 2011, 6:00:34 PM10/30/11
to gnome-gl...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

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

gnome2-g...@googlecode.com

unread,
Oct 30, 2011, 8:40:26 PM10/30/11
to gnome-gl...@googlegroups.com

Comment #1 on issue 676 by renerpa...@gmail.com: Strange menu gap in some

the same here.

gnome2-g...@googlecode.com

unread,
Dec 7, 2011, 2:08:21 PM12/7/11
to gnome-gl...@googlegroups.com

Comment #2 on issue 676 by nilarimo...@gmail.com: Strange menu gap in some

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!

gnome2-g...@googlecode.com

unread,
Dec 7, 2011, 4:26:13 PM12/7/11
to gnome-gl...@googlegroups.com

Comment #3 on issue 676 by rainwood...@gmail.com: Strange menu gap in some

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?

gnome2-g...@googlecode.com

unread,
Dec 8, 2011, 7:27:34 AM12/8/11
to gnome-gl...@googlegroups.com

Comment #4 on issue 676 by nilarimo...@gmail.com: Strange menu gap in some

Yes, I get warnings, but not a huge amount...

gnome2-g...@googlecode.com

unread,
Dec 10, 2011, 3:23:09 PM12/10/11
to gnome-gl...@googlegroups.com

Comment #5 on issue 676 by rom...@ledisez.net: Strange menu gap in some

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.

gnome2-g...@googlecode.com

unread,
Dec 11, 2011, 12:50:23 PM12/11/11
to gnome-gl...@googlegroups.com

Comment #6 on issue 676 by rainwood...@gmail.com: Strange menu gap in some

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.

gnome2-g...@googlecode.com

unread,
Jan 9, 2012, 10:43:07 AM1/9/12
to gnome-gl...@googlegroups.com

Comment #7 on issue 676 by gramaz...@gmail.com: Strange menu gap in some

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

gnome2-g...@googlecode.com

unread,
Jan 12, 2012, 11:48:09 AM1/12/12
to gnome-gl...@googlegroups.com

Comment #8 on issue 676 by bendavi...@gmail.com: Strange menu gap in some

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.

gnome2-g...@googlecode.com

unread,
Jan 12, 2012, 1:44:57 PM1/12/12
to gnome-gl...@googlegroups.com

Comment #9 on issue 676 by rainwood...@gmail.com: Strange menu gap in some

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.

gnome2-g...@googlecode.com

unread,
Jan 12, 2012, 1:49:59 PM1/12/12
to gnome-gl...@googlegroups.com

Comment #10 on issue 676 by bendavi...@gmail.com: Strange menu gap in some

Yes, that's the change I made, but it didn't seem to fix anything.

gnome2-g...@googlecode.com

unread,
Jan 13, 2012, 6:11:37 PM1/13/12
to gnome-gl...@googlegroups.com

Comment #11 on issue 676 by bendavi...@gmail.com: Strange menu gap in some

Scratch that last comment. I've since rebooted and it now seems to be
working correctly.

gnome2-g...@googlecode.com

unread,
Feb 1, 2012, 1:58:19 PM2/1/12
to gnome-gl...@googlegroups.com

Comment #12 on issue 676 by oddgh...@mail.ru: Strange menu gap in some apps
on Gnome3
http://code.google.com/p/gnome2-globalmenu/issues/detail?id=676

stop post simmilar issues becouse of is dificult to find solutions in
comments
issue 675

Reply all
Reply to author
Forward
0 new messages