Page 1 of 2 12 LastLast
Results 1 to 10 of 2990

Thread: Mac-style Menu Bar for GTK and Java/Swing applications!

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Taipei & Cebu
    Beans
    107
    Distro
    Ubuntu 15.10 Wily Werewolf

    Re: Mac-style Menu Bar for GTK and Java/Swing applications!

    Quote Originally Posted by Rob2687 View Post
    Well it's been 12 hours as of this post so it's either tonight or tommorrow morning already.
    I was playing et last night anyway it's done now

    Panel applet for gnome 2.16:



    Source and data files: http://aur.archlinux.org/packages.ph...ails=1&ID=7070

    Binary builds for i686 are there => http://people.os-zen.net/aqd/repository/ (you need gtk2-aqd and gnome-macmenu-applet)

    They're arch linux packages (.tar.gz) but should also work for other distros. To install, first make sure you already have gtk+ 2.10 and gnome, then untar the .tar.gz files and copy all non-dotfiles. If you install to a different gnome location, remember to change the line#3 "location="/opt/gnome/libexec/gnome-macmenu-applet" in opt/gnome/lib/bonobo/servers/GNOME_MacMenuApplet.server (for gtk+ 2.8, see the first post for patch, or use others' dapper packages)

    To move or remove the applet, move mouse pointer to the rightmost place of the menubar, where you will see something appearing like a flat button, then left-click on it (don't release button until you select the menu item)

    right-click for panel menu works only when there is no focused window.

    Problems and solutions:
    1. GNOME/GTK2 apps' menubars cannot be restored to the original state once you use this applet. However, they wouldn't die even if the applet/panel crashes - restarting gnome-panel will catch them back.
    2. After you restart the panel, the menubar of currently active window may not be visible, unfocus/focus (or shade/unshade) the main window will make it appear again
    3. Restarting metacity may cause some menubars to disappear - restarting gnome-panel will solve this
    4. If your application crashes when the applet/panel quits, use my latest gtk2 patch/binary (for gtk 2.10 and 2.8).


    Cheers!

    Edit: the links provided in this post are not valid any longer.
    Last edited by bapoumba; October 28th, 2007 at 10:39 AM. Reason: Additional Info.

  2. #2
    Join Date
    Jul 2006
    Beans
    11

    Re: Mac-style Menu Bar for GTK and Java/Swing applications!

    Thanks a lot. About to give it a go now.

  3. #3
    Join Date
    Jul 2006
    Beans
    11

    Re: Mac-style Menu Bar for GTK and Java/Swing applications!

    Ok, it seemed to work, until after I restarted my gnome panel. Gnome panel would crash on launch instantly after I installed a patched version of GTK, be it compiled by myself or your binary package. Once I restored to the ubuntu gtk, gnome panel worked fine again.

  4. #4
    Join Date
    Aug 2006
    Location
    Taipei & Cebu
    Beans
    107
    Distro
    Ubuntu 15.10 Wily Werewolf

    Re: Mac-style Menu Bar for GTK and Java/Swing applications!

    Quote Originally Posted by agotfred View Post
    Ok, it seemed to work, until after I restarted my gnome panel. Gnome panel would crash on launch instantly after I installed a patched version of GTK, be it compiled by myself or your binary package. Once I restored to the ubuntu gtk, gnome panel worked fine again.


    You need to remove the "menu bar" applet from gnome-panel. It doesn't work with my gtk2 patch.

  5. #5
    Join Date
    Jul 2006
    Beans
    11

    Re: Mac-style Menu Bar for GTK and Java/Swing applications!

    Oh, I see. Any reason why it's broken? =)

  6. #6
    Join Date
    May 2005
    Location
    Sweden
    Beans
    91
    Distro
    Xubuntu 8.04 Hardy Heron

    Re: Mac-style Menu Bar for GTK and Java/Swing applications!

    I had some problems rebuilding my libgtk's but now it works again and the applet is very nice but AqD I have a small issue.

    When I open an app or window that doesn't have menubars as default the menubar is still there but for the last focused windows I used, this didn't happen with the first gtkmenubar.diff, is it my system that broke something or is there anything I can change in the diff?

    This happen with both the standalone and the applet.

    But hey, impressive work man.
    If I have ever made any valuable discoveries, it has been owing more to patient attention, than to any other talent.
    Isaac Newton

  7. #7
    Join Date
    Aug 2006
    Location
    Taipei & Cebu
    Beans
    107
    Distro
    Ubuntu 15.10 Wily Werewolf

    Re: Mac-style Menu Bar for GTK and Java/Swing applications!

    Quote Originally Posted by jannol View Post
    I had some problems rebuilding my libgtk's but now it works again and the applet is very nice but AqD I have a small issue.

    When I open an app or window that doesn't have menubars as default the menubar is still there but for the last focused windows I used, this didn't happen with the first gtkmenubar.diff, is it my system that broke something or is there anything I can change in the diff?

    This happen with both the standalone and the applet.

    But hey, impressive work man.
    Ah, what WM are you using? And do you have the latest 2.10.x patch (submitted 3 days ago)?

    It works here, with xfce 4.4, gnome 2.16, and blackbox. The code has been made more complex after first release, to make the menubar suffient itself (without panels). But it should not display previous menubar (not visible ) anyway unless the WM is broken or you get a bad patch

  8. #8
    Join Date
    Aug 2006
    Location
    Taipei & Cebu
    Beans
    107
    Distro
    Ubuntu 15.10 Wily Werewolf

    Re: Mac-style Menu Bar for GTK and Java/Swing applications!

    Quote Originally Posted by agotfred View Post
    Oh, I see. Any reason why it's broken? =)
    The patch is to re-assign the parent of menubar to a new toplevel window, similar to what KDE's mac menubar does.

    This approach is only intended to work with normal apps using normal method. But menubar itself in gtk is not a special high-level widget for each application, but a common one that you can put to any place (ex: you can have several menubars into a button or label).

    Some dev said I could/should do it in the high-level UI manager provided by gtk, which would not break any apps. But most non-gnome programs do not use it and I can't ask them to....

  9. #9
    Join Date
    Jul 2006
    Beans
    11

    Re: Mac-style Menu Bar for GTK and Java/Swing applications!

    Ok. I have another bug though, when using Compiz or Beryl I can't use the menubar. If I use metacity it works fine.

    Also here's a suggestion, the mac menu bar is quite hard to handle and place on the gnome bars, improving it's usability would be very nice, but that is up to you of course.

  10. #10
    Join Date
    Mar 2007
    Beans
    2

    Unhappy Re: Mac-style Menu Bar for GTK and Java/Swing applications!

    I cannot seem to get the .diff patches to work. I am new to this. If somebody could help me, it would be greatly appreciated.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •