MacMenu Bar hack for Gnome 2.20 – GTK+ 2.12

On 31 October 2007, in computing, by ayoli

mac menu in actionFortunately, some solutions came out from the ubuntuforums.org thread mentioned in the previous post. Here are the patch and the applet that I have grabbed from avb’s post in page 99 of this thread, the no underline patch has been made with an idea from page 52 of the macmenu ubuntuforums.org thread (post at the bottom of the page) :


NOTE : I have edited this entry to add the no underline patch and modifiy the instructions to use this patch.
...

/!\ Read carefully instructions before try, if you do this this is at your own peril

I installed the mac menu applet deb package(with dpkg in CLI or gdebi for the graphical way), then in a terminal, I typed this to install apt-build (Choose add apt-build repository to sources.list when asked)

sudo apt-get install apt-build

After, I told apt-build to get libgtk2.0-0 source package (apt-build takes care of the build deps for you, ie: -dev packages)
sudo apt-build source libgtk2.0-0

Next step was to copy the dowloaded patches from where is was (on the desktop in my case) to the libgtk2.0-0 source package directory
sudo cp ~/Desktop/099_mac_menubar.patch /var/cache/apt-build/build/gtk+2.0-2.12.0/debian/patches/

sudo cp ~/Desktop/098_no_label_underline.patch /var/cache/apt-build/build/gtk+2.0-2.12.0/debian/patches/


And, I added their name to the debian/patches/series list (at the very bottom of file)
sudo gedit /var/cache/apt-build/build/gtk+2.0-2.12.0/debian/patches/series

the last command was to use apt-build to build the packages
sudo apt-build install libgtk2.0-0

Note: this step could take around 30 min, depends of your computer capacities.
Finally, update-manger offered me an libgtk upgrade (the patched libgtk from apt-build repos, because my apt-build repos is unsigned.) and, I added the applet to the top panel, logged out/in gnome, and now it works :)

For those who don’t want to deal with the commands above and prefer to try my debs for ubuntu gutsy 32 bits, here they are. The 2 patches above are applied on this version :
NOTE : these packages have a superior version number than original gusty ones, so there shouldn’t have update (at least before ubuntu devs post a security update)



Uninstallation instructions :
If you have used the apt-build method to install the patched gtk do this to uninstall :

  1. Go to menu system > administration > software sources. Pick the “third party software” tab, and uncheck apt-build repository.

  2. Then in a terminal type in:
    sudo apt-get clean && sudo apt-get update && sudo apt-get install --reinstall -y libgtk2.0-0


  3. Logout / in gnome to apply changes.

Tagged with:  

3 Responses to “MacMenu Bar hack for Gnome 2.20 – GTK+ 2.12”

  1. alfie says:

    so this is for 32bit gnome and not 64bit?

  2. ayoli says:

    all the deb here are for gusty gibbon 32 bits.
    I ‘ll soon post the sources of the applet with a quick how to compile them.
    You can also find these here
    https://wiki.ubuntu.com/global_menu

  3. gtk 2.0 says:

    [...] Name (required) Mail (will not be …MacMenu Bar hack for Gnome 2.20 GTK+ 2.12sudo cp ~/Desktop/099_mac_menubar.patch /var/cache/apt-build/build/gtk+2.0-2.12.0/debian/patches … [...]

Leave a Reply

Free WordPress Theme

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!