Page 102 of 299 FirstFirst ... 25292100101102103104112152202 ... LastLast
Results 1,011 to 1,020 of 2990

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

  1. #1011
    Join Date
    Mar 2007
    Location
    Ivano-Frankivsk, Ukraine
    Beans
    8
    Distro
    Ubuntu 11.04 Natty Narwhal

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

    Quote Originally Posted by Psyphre View Post
    How do i recompile to 64bit? sorry im noobish.
    How it is described above

  2. #1012
    Join Date
    Jul 2007
    Beans
    193
    Distro
    Gutsy Gibbon Testing

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

    ^ Which source so we use?

  3. #1013
    Join Date
    Mar 2007
    Location
    Ivano-Frankivsk, Ukraine
    Beans
    8
    Distro
    Ubuntu 11.04 Natty Narwhal

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

    Quote Originally Posted by LavianoTS386 View Post
    ^ Which source so we use?
    any source, gcc command is the same for the applet

  4. #1014
    Join Date
    Feb 2007
    Beans
    301
    Distro
    Ubuntu 9.04 Jaunty Jackalope

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

    Quote Originally Posted by AcidumIrae View Post
    How it is described above
    Thx, i misunderstood, thought i had to recompile THEN follow those instructions.
    Works now!! thx so much!

  5. #1015
    Join Date
    Nov 2005
    Beans
    15

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

    Here's how I did it and it worked.
    I'm on Gutsy x86_64 (Turion64 HP dv2000).
    1. Download the gtk patch that detaches menus from gnome windows.
    (http://ubuntuforums.org/attachment.p...chmentid=47782)
    2. Download the mac menu applet source.
    (http://ubuntuforums.org/attachment.p...chmentid=48014)
    3. Install the necessary dependencies for compiling gtk
    Code:
    sudo apt-get install build-essential autotools-dev comerr-dev dpkg-dev libart-2.0-dev libatk1.0-dev libaudiofile-dev libavahi-client-dev libavahi-common-dev libavahi-glib-dev libbonobo2-dev libbonoboui2-dev libc6-dev libcairo-directfb2-dev libcairo2-dev libcupsys2-dev libdbus-1-dev libdirectfb-dev libesd0-dev libexpat1-dev libfontconfig1-dev libfreetype6-dev libgail-dev libgconf2-dev libgcrypt11-dev libgdk-pixbuf-dev libglade2-dev libglib1.2-dev libglib2.0-dev libgnome-keyring-dev libgnome2-dev libgnomecanvas2-dev libgnomeui-dev libgnomevfs2-dev libgnutls-dev libgpg-error-dev libgtk1.2-dev libgtk2.0-dev libhal-dev libhal-storage-dev libice-dev libidl-dev libjpeg62-dev libkrb5-dev liblzo2-dev libopencdk8-dev liborbit2-dev libpanel-applet2-dev libpango1.0-dev libpng12-dev libpopt-dev libselinux1-dev libsepol1-dev libsm-dev libstartup-notification0-dev libstdc++6-4.1-dev libsysfs-dev libtasn1-3-dev libtiff4-dev libusplash-dev libwnck-dev libx11-dev libxau-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxkbfile-dev libxml2-dev libxrandr-dev libxrender-dev libxres-dev libxt-dev linux-libc-dev x11proto-composite-dev x11proto-core-dev x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-resource-dev x11proto-xext-dev x11proto-xinerama-dev xtrans-dev xutils-dev zlib1g-dev
    3. Get GTK source
    Code:
    apt-get source libgtk2.0-0
    4. Patch and compile GTK source
    Code:
     
    gzip -d gtk+-2.12.0-r2-gtkmenubar.diff.gz
    cd gtk+2.0-2.12.0/
    patch -p0 < ../gtk+-2.12.0-r2-gtkmenubar.diff
    ./configure --prefix=/usr
    make
    sudo make install
    5. Reboot.
    6. Compile the applet.
    Code:
    sudo apt-get install libwnck-dev libpanelappletmm-2.6-dev
    tar -xvzf macmenu-applet-0.1.tar.gz
    cd macmenu-applet-0.1/
    make
    sudo make install
    7. Restart gnome-panel
    Code:
    killall gnome-panel
    8. I'm using carbonit gtk theme (http://www.gnome-look.org/content/sh...d48fe9b49f7a60)which uses a png for menubar background. I adjusted the menu background to match the panel background by modyfying ~/.themes/Carbonit/gtk-2.0/Menu-Menubar/menubar.rc and changing all "menubar" at the end of the file to "no-manubar"
    Code:
    class "GtkMenuBar*"					style "no-menubar"
    widget_class "*MenuBar.*" 			style "no-menubar"
    widget_class "*Nautilus*.GtkMenuBar*"	style "no-menubar"
    widget_class "*E*GtkMenuBar*"		style "no-menubar"
    widget_class "*Gimp*GtkMenuBar*"		style "no-menubar"
    widget_class "*Firefox*GtkMenuBar*"	style "no-menubar"
    class "*Panel*" 					style "no-menubar"
    Attached Images Attached Images
    Attached Files Attached Files

  6. #1016
    Join Date
    Nov 2006
    Beans
    Hidden!

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

    Quote Originally Posted by lxevolution View Post
    Here's how I did it and it worked.
    Great work.

  7. #1017
    Join Date
    Oct 2007
    Beans
    13

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

    Here is a little something for people who dont like the little arrow on the main menu applet (see result in the screenshot below):

    Code:
    mkdir ~/gnome-panel
    Download the 99_no_arrows.patch.gz below and move it to gnome-panel in your home directory.
    Code:
    cd ~/gnome-panel
    gzip -d 99_no_arrows.patch.gz
    apt-get source gnome-panel
    mv 99_no_arrows.patch gnome-panel-2.20.1/debian/patches
    cd gnome-panel-2.20.1
    debuild
    sudo dpkg -i ../*.deb
    killall gnome-panel
    If the panel should act up after that, just log out, reboot or whatever.

    I also built packages for gutsy for both the gnome applet and xfce4 plugin, but I am still missing a way to remove the underlines in the menu and maybe to make the text bolt, keeping me from making a proper package for gtk. Does anyone know a patch or what I have to change in the GTK+2 source to accomplish this?

    Hope someone can make some use of this,


    Avlex.

    P.S.: I know my window button setup is weird, youll understand why this way when you closed a window you didnt want to close instead of the VNC viewer window on a real mac.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by avlex; October 31st, 2007 at 08:38 PM.

  8. #1018
    Join Date
    Nov 2006
    Beans
    1

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

    Hello,

    I've just installed the patch and everything seems to be ok except for the following problems:

    1) The app label position is too high, it is not aligned to the app menu

    2) After app label, there seems to bee a little white underscore.

    3) Gnome seems to be much slower with mac menu patch applied...?!

    I've attached a screenshoot to see what I'm saying....please help, is there any fix for this?

    Thank you!
    Attached Images Attached Images

  9. #1019
    Join Date
    Mar 2006
    Beans
    2

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

    Quote Originally Posted by lxevolution View Post
    Here's how I did it and it worked.
    I'm on Gutsy x86_64 (Turion64 HP dv2000).
    1. Download the gtk patch that detaches menus from gnome windows.
    (http://ubuntuforums.org/attachment.p...chmentid=47782)
    2. Download the mac menu applet source.
    (http://ubuntuforums.org/attachment.p...chmentid=48014)
    3. Install the necessary dependencies for compiling gtk
    Code:
    sudo apt-get install build-essential autotools-dev comerr-dev dpkg-dev libart-2.0-dev libatk1.0-dev libaudiofile-dev libavahi-client-dev libavahi-common-dev libavahi-glib-dev libbonobo2-dev libbonoboui2-dev libc6-dev libcairo-directfb2-dev libcairo2-dev libcupsys2-dev libdbus-1-dev libdirectfb-dev libesd0-dev libexpat1-dev libfontconfig1-dev libfreetype6-dev libgail-dev libgconf2-dev libgcrypt11-dev libgdk-pixbuf-dev libglade2-dev libglib1.2-dev libglib2.0-dev libgnome-keyring-dev libgnome2-dev libgnomecanvas2-dev libgnomeui-dev libgnomevfs2-dev libgnutls-dev libgpg-error-dev libgtk1.2-dev libgtk2.0-dev libhal-dev libhal-storage-dev libice-dev libidl-dev libjpeg62-dev libkrb5-dev liblzo2-dev libopencdk8-dev liborbit2-dev libpanel-applet2-dev libpango1.0-dev libpng12-dev libpopt-dev libselinux1-dev libsepol1-dev libsm-dev libstartup-notification0-dev libstdc++6-4.1-dev libsysfs-dev libtasn1-3-dev libtiff4-dev libusplash-dev libwnck-dev libx11-dev libxau-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxkbfile-dev libxml2-dev libxrandr-dev libxrender-dev libxres-dev libxt-dev linux-libc-dev x11proto-composite-dev x11proto-core-dev x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-resource-dev x11proto-xext-dev x11proto-xinerama-dev xtrans-dev xutils-dev zlib1g-dev
    3. Get GTK source
    Code:
    apt-get source libgtk2.0-0
    4. Patch and compile GTK source
    Code:
     
    gzip -d gtk+-2.12.0-r2-gtkmenubar.diff.gz
    cd gtk+2.0-2.12.0/
    patch -p0 < ../gtk+-2.12.0-r2-gtkmenubar.diff
    ./configure --prefix=/usr
    make
    sudo make install
    5. Reboot.
    6. Compile the applet.
    Code:
    sudo apt-get install libwnck-dev libpanelappletmm-2.6-dev
    tar -xvzf macmenu-applet-0.1.tar.gz
    cd macmenu-applet-0.1/
    make
    sudo make install
    7. Restart gnome-panel
    Code:
    killall gnome-panel
    8. I'm using carbonit gtk theme (http://www.gnome-look.org/content/sh...d48fe9b49f7a60)which uses a png for menubar background. I adjusted the menu background to match the panel background by modyfying ~/.themes/Carbonit/gtk-2.0/Menu-Menubar/menubar.rc and changing all "menubar" at the end of the file to "no-manubar"
    Code:
    class "GtkMenuBar*"					style "no-menubar"
    widget_class "*MenuBar.*" 			style "no-menubar"
    widget_class "*Nautilus*.GtkMenuBar*"	style "no-menubar"
    widget_class "*E*GtkMenuBar*"		style "no-menubar"
    widget_class "*Gimp*GtkMenuBar*"		style "no-menubar"
    widget_class "*Firefox*GtkMenuBar*"	style "no-menubar"
    class "*Panel*" 					style "no-menubar"
    Failed to make it on ubuntu gutsy with gnome 2.20.1.

    Each time I added the applet, gnome-panel complained.

  10. #1020
    Join Date
    Nov 2005
    Beans
    15

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

    Quote Originally Posted by zhangsen View Post
    Failed to make it on ubuntu gutsy with gnome 2.20.1.

    Each time I added the applet, gnome-panel complained.
    My gnome version is also 2.20.1.
    Are you sure you did "make" and "sudo make install" for the gnome applet? Try removing the /usr/lib/gnome-applets/gnome-macmenu-applet and /usr/lib/bonobo/servers/GNOME_MacMenuApplet.serverfiles and then recompiling the panel applet again.

Page 102 of 299 FirstFirst ... 25292100101102103104112152202 ... 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
  •