Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old August 22nd, 2006   #1
AqD
A Carafe of Ubuntu
 
Join Date: Aug 2006
Beans: 101
Thumbs down Mac-style Menu Bar for GNOME/Xfce!

Edit 071204: the links provided in this post are not valid any longer. Please see the wiki page
__________________________________________________ __________________________________________________ ________________________________


JAVA/SWING HACK has been removed becasue it's not ready for real apps
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Hi all!

I hacked gtk2 to use mac-style menubars, and added panel applets for xfce (4.4+) and gnome.

GTK Patches: for gtk 2.10.x | 2.8.x | AUR
GNOME Panel Applet: see post http://ubuntuforums.org/showpost.php?p=1593123
Xfce Panel Applet (xfce 4.4): see post http://ubuntuforums.org/showpost.php?p=1586951 (need libwnck>=2.16)

Ubuntu Edgy Packages #1: Cwiiis's http://chrislord.net/files/gtkmenubar/
Ubuntu Edgy Packages #2: flargen's, see post http://ubuntuforums.org/showpost.php?p=1600937
Gentoo Packages: see post http://ubuntuforums.org/showpost.php?p=1672912
Lunar Linux Packages: see post http://ubuntuforums.org/showpost.php?p=1612710
Official Arch Linux packages (.tar.gz format): http://aquila.deus.googlepages.com/archlinuxpackages
(names are gtk2-aqd, gnome-macmenu-applet, xfce4-macmenu-plugin and xfce4-corner-plugin)

Screenshots (official):

Screenshots from zammi (left 2) and Cimi86 (right 1):


Environment variable GTK_MENUBAR_NO_MAC let you set a list app executable names to disable mac menubar for, separated by space (default "gnome-panel acroread"). Set it to 1 to completely disable mac menubar.

If you have KDE apps, set mac-style menubar [control center -> desktop -> behavior] and you will see it appearing in gnome or xfce panel applet. (be careful - the menubars will die when panel/applet quits)

To move/remove the panel applets, move mouse to the rightmost place, where you'll see a flat button with no text inside, left-click on it to bring up the applet menu (right-click in xfce's panel plugin). If you have turned on the title label, you can also get the menu by right-click on it.

Application compatibility:
- Perfect: Azuerus, Eclipse, Epiphany, Evince, Gaim, gFTP, GMPC, Listen, Nautilus, Terminal, Thunar, VMware, ...
- Small problems: Bluefish, Evolution
- Big problems (need patch): all wxGTK-based programs, you would need my patches in here
- Crash: Acrobat Reader 7 (mac menubar disabled by default)

All the Alt+[A-Z] menu hotkeys cannot work with mac menubar - no fix yet.

To patch gtk2 manually:
0.Get gtk2 source
1.cd ...../..../gtk+-2.10.X (X means the version number)
2.patch -p0 < ......./..../gtkmenubar.diff (gtkmenubar-2.8.diff)
3.configure and make & install

To build the panel applets:
0.Go to AUR entries: Xfce | GNOME
1.Download the files under "Source" box
2.See PKGBUILD for gcc arguments and install locations

My modifed GT4_white theme (gtk2, metacity, xfce) => http://www.deviantart.com/deviation/40625220/

For other themes, you can make the menubar thin (more accessible) by edit the /usr/share/themes/THEME_NAME/gtk-2.0/gtkrc, find the line style "menubar" {, and change the ythickness = XXX below it (inside the { and }) to ythickness = 0

Last edited by bapoumba; December 4th, 2007 at 04:07 PM.. Reason: Wiki link added.
AqD is offline   Reply With Quote
Old August 24th, 2006   #2
kpolice
Way Too Much Ubuntu
 
Join Date: Apr 2006
Beans: 273
Send a message via MSN to kpolice
Re: Mac-style Menu Bar for GTK and Java/Swing applications!

Wow, trully amazing.
kpolice is offline   Reply With Quote
Old August 24th, 2006   #3
andlinux21
Ubuntu Extra Shot
 
andlinux21's Avatar
 
Join Date: May 2005
Location: Texas
Beans: 339
Ubuntu 7.04 Feisty Fawn
Send a message via Yahoo to andlinux21
Re: Mac-style Menu Bar for GTK and Java/Swing applications!

Will this work on Breezy or just dapper I would love to try this
__________________
In a world without walls who needs Windows??
andlinux21 is offline   Reply With Quote
Old August 24th, 2006   #4
kpolice
Way Too Much Ubuntu
 
Join Date: Apr 2006
Beans: 273
Send a message via MSN to kpolice
Re: Mac-style Menu Bar for GTK and Java/Swing applications!

Actually it's for edgy because Dapper GTK+ 2.8 not 2.10 but maybe the patch could work with other versions, I just don't know which source package should I get, is it libgtk2.0?
kpolice is offline   Reply With Quote
Old August 24th, 2006   #5
AqD
A Carafe of Ubuntu
 
Join Date: Aug 2006
Beans: 101
Smile Re: Mac-style Menu Bar for GTK and Java/Swing applications!

yes, libgtk2.0 (version 2.10). It should work for older versions as well even if you have to patch manually, since there is nothing specific about 2.10.

BTW the patch has just been updated to fix critical bugs. Changelogs are here

PS: if you have never used gtk 2.10 before and going to upgrade, you may get some theme-related problems listed there (with solutions)

Last edited by AqD; August 26th, 2006 at 01:28 PM..
AqD is offline   Reply With Quote
Old August 24th, 2006   #6
sciurus
Ubuntu Extra Shot
 
Join Date: May 2005
Beans: 362
Re: Mac-style Menu Bar for GTK and Java/Swing applications!

It would be nice if the Gnome developers offered this as an option like KDE does.
sciurus is offline   Reply With Quote
Old August 27th, 2006   #7
AqD
A Carafe of Ubuntu
 
Join Date: Aug 2006
Beans: 101
Re: Mac-style Menu Bar for GTK and Java/Swing applications!

I created a feature request with this patch => http://bugzilla.gnome.org/show_bug.cgi?id=353076
AqD is offline   Reply With Quote
Old August 28th, 2006   #8
Ptero-4
Fresh Brewed Ubuntu
 
Ptero-4's Avatar
 
Join Date: Oct 2004
Location: Panamá
Beans: 1,445
Ubuntu Studio 9.04 Jaunty Jackalope
Send a message via ICQ to Ptero-4 Send a message via AIM to Ptero-4 Send a message via Yahoo to Ptero-4
Re: Mac-style Menu Bar for GTK and Java/Swing applications!

Quote:
Originally Posted by AqD View Post
I created a feature request with this patch => http://bugzilla.gnome.org/show_bug.cgi?id=353076
Don't hold your breath just yet. The mere fact of having gotten as far as actually getting a functional mac menubar in gnome is too much asking knowing how much resistance the gtk/gnome devs opposed against this. Asking to get this into gnome directly is just wasting time. They DON'T want this done, period.

P.D: if this could be done so that it floats over the gnome-panel and can be made to start just next to the "Applications" icon in the gnome menubar applet (but covering the "Applications" label so that only the icon is visible) it would trully be Mac-like (the mac have the main menu placed at the left of the menubar thingie).
__________________
"Some people says that if you run a Microsoft Midori iso backwards you will hear demon voices commanding you to worship Satan". But that's nothing. If you run it forward it will install Microsoft Midori.
Ptero-4 is offline   Reply With Quote
Old September 1st, 2006   #9
zammi
5 Cups of Ubuntu
 
Join Date: Jun 2005
Beans: 33
Re: Mac-style Menu Bar for GTK and Java/Swing applications!

Any chance of getting debs for Dapper
zammi is offline   Reply With Quote
Old September 1st, 2006   #10
mejy
Gee! These Aren't Roasted!
 
Join Date: Mar 2006
Location: London
Beans: 207
Ubuntu Jaunty Jackalope (testing)
Re: Mac-style Menu Bar for GTK and Java/Swing applications!

Quote:
Originally Posted by Ptero-4 View Post
Don't hold your breath just yet. The mere fact of having gotten as far as actually getting a functional mac menubar in gnome is too much asking knowing how much resistance the gtk/gnome devs opposed against this. Asking to get this into gnome directly is just wasting time. They DON'T want this done, period.

P.D: if this could be done so that it floats over the gnome-panel and can be made to start just next to the "Applications" icon in the gnome menubar applet (but covering the "Applications" label so that only the icon is visible) it would trully be Mac-like (the mac have the main menu placed at the left of the menubar thingie).
Well I know from my own experience how... resistant the gnome devs can be, but wouldn't this have a chance if it was disabled untill an enviromental variable or gtkrc line was set? Also, I think the problem with you Applications menu suggestion is that many users don't have it in the default location.

Would it be possible to have this hack pass information to a panel-applet that can be put in the top panel, to act like the Apple menu in a less 'hackish' way?
mejy is offline   Reply With Quote

Bookmarks

Tags
globalmenu, gnome, java, mac

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:52 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry