Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Hi, SkiesOfAzel
I have the same problem.
But the macmenu applet can not working here.
Everytime I try to add it to the panel, there is a pop-up saying that thereś something wrong with macmenu applet , and cannot load it.
error when loading panel : ´OAFIID:GNOME_MacMenuApplet´
C?
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Hey. I'm really interested in using Mac Menu. The thing I don't understand is which version of GTK do I use. I am using 7.04. Also, how do I hack the GTK files. The instructions in the first post are kind of broad and generalized. Any help is appreciated. Thank you.
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
For everyone that has problems with the applet, you can compile it from source . In order for it to compile succesfully you must first hack your gtk . Type this on the terminal
Code:
sudo apt-get install build-essential
and then follow the instructions here. If you are not on Feisty you must download a different gtk from the one linked in the above post(for edgy you need 2.10.6) and some dependencies may have a different version number but you can find the correct version by searching the names in synaptic.
Now to compile the applet. Get the sources here.
Untar them go to the newly created gnome-macmenu-applet directory in the terminal and type:
Code:
gedit GNOME_MacMenuApplet.server
Change the third line from :
Code:
location="/opt/gnome/libexec/gnome-macmenu-applet">
To :
Code:
location="/usr/lib/gnome-applets/gnome-macmenu-applet">
Now compile and install the applet by entering this into the terminal :
Code:
sudo apt-get install libwnck-dev gnome-panel libpanelappletmm-2.6-dev
gcc -std=c99 -Wall -Werror -fno-strict-aliasing -DFOR_GNOME `pkg-config --cflags --libs libwnck-1.0 libpanelapplet-2.0 gconf-2.0` $CFLAGS $LDFLAGS -o gnome-macmenu-applet macmenu-applet.c
sudo mkdir -p /usr/lib/gnome-applets
sudo mkdir -p /usr/lib/bonobo/servers
sudo cp -f gnome-macmenu-applet /usr/lib/gnome-applets
sudo cp -f GNOME_MacMenuApplet.server /usr/lib/bonobo/servers
Again, if you are not on Feisty the libpanelappletmm-2.6-dev may not be the correct package, just run synaptic and search for a package starting with libpanelapplet or libpanel-applet and a -dev in the end and install it.
log out and relogin, add the applet to your panel and everything should work.
If all this seems difficult or doesn't work for you can try the precompiled packages for Feisty, get them here.
Untar them in a preferably empty directory , navigate there in the terminal and type
. Now we must also get the applet that is attached to the bottom of this post and follow the instructions under Panel Applet on this post to install it.
log out and relogin, add the applet and everything should now be hopefully working.
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
SkiesOfAzel, I thank you. It worked like a charm and I'm now running the applet happily now. Once again, thanks.
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Did you compile it yourself or did u use the debs ?
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Thanks a lot, SkiesOfAzel. I'm now running macmenu-applet on Feisty amd64 (I compiled it myself) :D
It's just a little big bugged with Gaim, it shows almost all the time the Gaim menu instead of the conversation menu. Also, the "now typing" icon moved to the top too, it shouldn't happen... It's ugly. And Firefox doesn't work.
Anyway, it is great, thank you!
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
SkiesOfAzel: I followed your post and it worked after trying the precompiled Feisty packages. It somewhat worked... It only shows the program name; no File, Edit, whatever, and the text isn't even aligned correctly. :s
Edit: It shows File and such with some programs, but the program name is still not aligned correctly :p
By the way, how would I go about undoing this so that when I don't have the applet on the menubar, the File, Edit, etc shows up in the window and not at the corner of the screen?
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
First of all, the macmenu hack isn't mine it's Aqd's so thank him not me, i just wrote a howto.
The reason the hack doesn't work with some programs is that these programs don't use gtk for their interface thus the hack can't steal their menus and send them to the applet on your panel. If you have problems with the alignment of the text try changing the font or the font's rendering (i propose this with the sans font and autohinter for font tuning method).
As for disabling it look here for the environmental variable to do this.
Btw some of this info has been posted many times on this thread, i know it's a pain to find it on a thread with so many posts but please search a little before you ask something. I will try to make a more complete howto and post it, so that this can be avoided in the future.
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
I used the deb. I tried to compile it, But it didn't work, so I used the deb, and viola.
It would be cool if Firefox had the file, edit, ect. up at the top, but I understand why it doesn't.
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
When you say it didn't work you mean it didn't compile? Can you tell me what error message it gave you and your version of ubuntu?