-
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):
http://static.flickr.com/117/284304699_60d79c3555_m.jpg http://static.flickr.com/112/275099051_58c8d4fff0_m.jpg http://static.flickr.com/108/263218425_fce75ce02b_m.jpg
Screenshots from zammi (left 2) and Cimi86 (right 1):
http://static.flickr.com/117/284328107_af99da556d_m.jpg http://static.flickr.com/112/284328104_6995c6f4b7_m.jpg http://static.flickr.com/114/290063868_264a518fef_m.jpg
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
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
-
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
-
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?
-
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)
-
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.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
AqD
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).
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Any chance of getting debs for Dapper :)
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
Ptero-4
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?
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Hi guys, this is my first post here.
I need some help from you: before "make install" the package, what files (directory) should I backup?
Excuse me for my bad English :-( and for the stupid question, but I'm a newbie.
Bye,
Giovanni
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
This is great. I'm not a big fan of trying to make Linux look like OSX, but this kind of menu bar is just plain practical. Why have a menu on every window when you're only using one at a time anyway? It saves screen space! I'd love to see this become part of Gnome the way it is in KDE. I don't see any logical reason not to include it.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
What???
KDE already get it?
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Yeah, KDE has had this feature for a long time. It's just an option you toggle in kcontrol.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
zammi
Any chance of getting debs for Dapper :)
If you want to build it. Or you could untar my binary.
BTW I'm not an ubuntu user, so I can't do this for you guys. I just come here to get more attention :)
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
gisluz
Hi guys, this is my first post here.
I need some help from you: before "make install" the package, what files (directory) should I backup?
Excuse me for my bad English :-( and for the stupid question, but I'm a newbie.
No backup needed :D
If you want to restore, just run "make uninstall" from the source dir, and then reinstall Ubuntu's gtk2 package. If you delete the source dir accidentally, remember to remove the following files:
Code:
/usr/lib/libgdk-x11-2.0.so.0.1000.3
/usr/lib/libgdk_pixbuf-2.0.so.0.1000.3
/usr/lib/libgdk_pixbuf_xlib-2.0.so.0.1000.3
/usr/lib/libgtk-x11-2.0.so.0.1000.3
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
gisluz
What???
KDE already get it?
For a very long time... It's very easy to do with modern GUI tookits like gtk2 and qt, as long as the applications or other frameworks built on top don't try to break it (wxGTK does that...)
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
With the configure i have this error:
Code:
checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 2.12.0 atk >= 1.9.0 pango >= 1.12.0 cairo >= 1.2.0) were not met.
Anyone can help me with the dependences ?
Tnx,
Luca.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
ShinjiLeery
With the configure i have this error:
Code:
checking for BASE_DEPENDENCIES... configure: error: Package requirements (glib-2.0 >= 2.12.0 atk >= 1.9.0 pango >= 1.12.0 cairo >= 1.2.0) were not met.
Anyone can help me with the dependences ?
Tnx,
Luca.
Hi! Maybe your system is too old for gtk+2 2.10.x??
I just made the same patch for gtk+ 2.8.x (tested with 2.8.19), get it here => http://aquila.deus.googlepages.com/gtkmenubar-2.8.diff
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
AqD
I have a ubuntu 6.6.0.1
Where i have to install the patch? And then later i can turn back to the normal use?
Tnx,
Luca.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
ShinjiLeery
I have a ubuntu 6.6.0.1
Where i have to install the patch? And then later i can turn back to the normal use?
Tnx,
Luca.
Install: get gtk 2.8 source and apply the patch (see the first post)
Uninstall: just install the original gtk package back, or use the environment variable GTK_MENUBAR_NO_MAC=1 to temporarily disable it.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
I'm definitely no big fan of OS X but I have to say I love their launcher. This thing looks awesome. I read the thread and I can't understand if it will work in Dapper & Gnome or not. Will it?
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
It seem to work on edgy and gnome but I don't know about gnome-panel though cause it seems like if you have a panel at the top you can't use it. In my case, if I ex click on the desktop I can see my top panel but I cant click on any of the icons, panels elsewhere works fine. However if I close all my apps I can click on them.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Looks lovely, but I can't try it. When I run ./compile on the patched version of gtk, it gives me an error about not being able to find libx11
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
fenwik
Looks lovely, but I can't try it. When I run ./compile on the patched version of gtk, it gives me an error about not being able to find libx11
Hi! You need to install the "libgtk2.0-dev" package (or all its dependencies manually ;)), which contain headers and other files for building gtk.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
Robor
I'm definitely no big fan of OS X but I have to say I love their launcher. This thing looks awesome. I read the thread and I can't understand if it will work in Dapper & Gnome or not. Will it?
It works with Dapper now - I have made a patch for gtk 2.8 and tested it (you can't turn on the cool title label though)
In gnome, you need to move the panel to any place other than the top screen edge.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
jannol
It seem to work on edgy and gnome but I don't know about gnome-panel though cause it seems like if you have a panel at the top you can't use it. In my case, if I ex click on the desktop I can see my top panel but I cant click on any of the icons, panels elsewhere works fine. However if I close all my apps I can click on them.
Because the panel is actually covered by all the menubars of your applications :D
I make the menubar transparent rather than hidden when the app loses focus, so it can keep the dock space on desktop (that fixes your desktop icon alignment, maxmized windows, etc)
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
kpolice
Wow, trully amazing.
Yes. It's so beautiful.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Hi.. these screenshots looks great..
i am trying to do this on my Edgy..but i am having problem (cos i am newbie)
i compile and installed everything according to your steps but how do i edit the below values??
There are some environment variables to customize the menubar:
- GTK_MENUBAR_INACTIVE_OPACITY - value from 0.0 to 1.0, menubar opacity (default 0.66666...)
- GTK_MENUBAR_ACTIVE_OPACITY - value from 0.0 to 1.0, menubar opacity when the mouse hovers it (default 1.0)
- GTK_MENUBAR_NO_MAC - set to 1 to disable mac-style menubar (required by acrobat reader 7)
- GTK_MENUBAR_TITLE_WIDTH - width (in pixel) of the gradient title label, next to menubar (default 0). THIS DOESN'T WORK WITH gtk+ 2.8.x.
- GTK_MENUBAR_TITLE_FONT - text font family name for the gradient title label, (default "Times")
------------------------------------------------------------------
Java/Swing mac menubar
Similar to the GTK one
i cant find the below directory on my edgy
su to root and make a backup of /opt/java/jre/lib/rt.jar
please help
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
I'm confused and/or doing something wrong here. I'm on Dapper and trying to install this. I've got the pre-built binary downloaded. I'm trying to do the Java portion and here's what's happening.
robor007@Home-T42-Ubuntu:~/Themes/OS_X_Style_MenuBar$ javac javax/swing/JRootPane.java
bash: javac: command not found
robor007@Home-T42-Ubuntu:~/Themes/OS_X_Style_MenuBar$ javac javax/swing/JRootPane.patch
bash: javac: command not found
How do I 'run' the file to do this? :confused: Sorry, I'm not very good in Linux.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
sunilsattiraju
Hi.. these screenshots looks great..
i am trying to do this on my Edgy..but i am having problem (cos i am newbie)
i compile and installed everything according to your steps but how do i edit the below values??
There are some environment variables to customize the menubar:
- GTK_MENUBAR_INACTIVE_OPACITY - value from 0.0 to 1.0, menubar opacity (default 0.66666...)
- GTK_MENUBAR_ACTIVE_OPACITY - value from 0.0 to 1.0, menubar opacity when the mouse hovers it (default 1.0)
- GTK_MENUBAR_NO_MAC - set to 1 to disable mac-style menubar (required by acrobat reader 7)
- GTK_MENUBAR_TITLE_WIDTH - width (in pixel) of the gradient title label, next to menubar (default 0). THIS DOESN'T WORK WITH gtk+ 2.8.x.
- GTK_MENUBAR_TITLE_FONT - text font family name for the gradient title label, (default "Times")
Hi! You can set an environment variables in 3 ways: - Set in your ~/.bashrc for yourself or add a script /etc/profile.d/gtk2-mac.sh for everyone (permission 755). They will take effect after an user re-login, and may be overrided by next two methods.
Code:
export GTK_MENUBAR_INACTIVE_OPACITY=0.75
export GTK_MENUBAR_ACTIVE_OPACITY=0.95
- Set in current shell or a script such as ~/.xinitrc, same as above, except for that it only affects a program later started from the shell or script. From shell it's just like
Code:
[user ~]$ export GTK_MENUBAR_INACTIVE_OPACITY=0.75
- Set when a program starts from shell, syntax like:
Code:
[user ~]$ GTK_MENUBAR_NO_MAC=1 bluefish
or
Code:
[user ~]$ GTK_MENUBAR_TITLE_WIDTH=150 GTK_MENUBAR_TITLE_FONT="Apple Garamond" exec bluefish
PS: you need to have a x compositor or Xgl/compiz to make the menubar transparent.
Quote:
Originally Posted by
sunilsattiraju
------------------------------------------------------------------
Java/Swing mac menubar
Similar to the GTK one
i cant find the below directory on my edgy
su to root and make a backup of /opt/java/jre/lib/rt.jar
please help
Ah, obviously ubuntu doesn't install java to the same place as we do ;)
If you have java installed, you can find the jre directory by running "which java"
BTW the java patch is not as good as the gtk one. And if you have trouble using it with any application, please tell me.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
Robor
I'm confused and/or doing something wrong here. I'm on Dapper and trying to install this. I've got the pre-built binary downloaded. I'm trying to do the Java portion and here's what's happening.
robor007@Home-T42-Ubuntu:~/Themes/OS_X_Style_MenuBar$ javac javax/swing/JRootPane.java
bash: javac: command not found
robor007@Home-T42-Ubuntu:~/Themes/OS_X_Style_MenuBar$ javac javax/swing/JRootPane.patch
bash: javac: command not found
How do I 'run' the file to do this? :confused: Sorry, I'm not very good in Linux.
Hi! You need to install the JDK to compile a java file. (JRootPane.patch is not java source but a patch to the original javax/swing/JRootPane.java from JDK source)
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
AqD
Hi! You need to install the JDK to compile a java file. (JRootPane.patch is not java source but a patch to the original javax/swing/JRootPane.java from JDK source)
Okay, I installed the JDK and when I retry I get this:
robor007@Home-T42-Ubuntu:~/Themes/OS_X_Style_MenuBar$ javac javax/swing/JRootPane.java
Note: javax/swing/JRootPane.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
If I try the same with the .patch file instead I get this:
robor007@Home-T42-Ubuntu:~/Themes/OS_X_Style_MenuBar$ javac javax/swing/JRootPane.patch
javac: invalid flag: javax/swing/JRootPane.patch
Usage: javac <options> <source files>
Maybe this is over my head and I should just leave well enough alone?
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
Robor
Okay, I installed the JDK and when I retry I get this:
robor007@Home-T42-Ubuntu:~/Themes/OS_X_Style_MenuBar$ javac javax/swing/JRootPane.java
Note: javax/swing/JRootPane.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
It's just an useless warning, not error :)
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Okay, I think I have a partially installed menubar now and I can't get X to start anymore. If I look in ~./xsession-errors there's a spew of warnings like this:
'Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion 'GTK_IS_WIDGET (widget)' failed'
I did update my kernel and xorg but I've since reinstalled the ATI fglrx drivers. However, an 'fglrxinfo' reports 'Error: unable to open display :0'
:(
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
Robor
Okay, I think I have a partially installed menubar now and I can't get X to start anymore. If I look in ~./xsession-errors there's a spew of warnings like this:
'Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion 'GTK_IS_WIDGET (widget)' failed'
I did update my kernel and xorg but I've since reinstalled the ATI fglrx drivers. However, an 'fglrxinfo' reports 'Error: unable to open display :0'
:(
Can you tell the exact application that throws this error?
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
@AqD, for GNOME users ~/.gnomerc is better place to put the envs IMO.
And, I just added code for GTK_MENUBAR_TITLE_FONT_SCALE (like as =0.5) to your thread on compiz.net. Would you include if it's OK to you? :)
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Ah, one more, applying the patch directly to gtk+2.0 source surely not a good idea since in that case Ubuntu users will lose package's patches so I'd like to say that "use source package" with this patch is proper.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
AqD
Can you tell the exact application that throws this error?
It is this exact error:
(gnome-panel:5100): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion 'GTI_IS_WIDGET (widget)' failed
(gnome-panel:5100): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion 'GTI_IS_WIDGET (widget)' failed
ALSA: underrun, at least 0ms.
(gnome-panel:5100): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion 'GTI_IS_WIDGET (widget)' failed
(gnome-panel:5100): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion 'GTI_IS_WIDGET (widget)' failed
(gnome-panel:5100): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion 'GTI_IS_WIDGET (widget)' failed
Cutting log (size: 101938, max 100000)make transparent again
make transparent again
make transparent again
make transparent again
The application 'nautilus' lost its connection to the display :0.0;
most likely the X server was shut down or you killed/destroyed the application
gdesklets-daemon: Fatal IO error 104 (Connection reset by peer) on X server :0.0.
gnome-panel: Fatal IO error 104 (Connection reset by peer) on X server :0.0.
gnome-terminal: Fatal IO error 104 (Connection reset by peer) on X server :0.0.
update-notifier: Fatal IO error 104 (Connection reset by peer) on X server :0.0.
nm-applet: Fatal IO error 104 (Connection reset by peer) on X server :0.0.
Window manager warning: Lost connection to the display ' :0.0':
most likely the X server was shut down or you killed/destroyed the window manager
The application 'gnome-cups-icon' lost its connection to the display :0.0;
most likely the X server was shut down or you killed/destroyed the application
(nautilus:13367): Gnome-CRITICAL **: gnome_program_get_app_version: assertion 'program !=NULL' failed
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
atie
@AqD, for GNOME users ~/.gnomerc is better place to put the envs IMO.
And, I just added code for GTK_MENUBAR_TITLE_FONT_SCALE (like as =0.5) to your thread on compiz.net. Would you include if it's OK to you? :)
Ah!
You forgot to align the title text ;)
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
Robor
It is this exact error:
[i](gnome-panel:5100): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion 'GTI_IS_WIDGET (widget)' failed
Ah, maybe you have the "menu bar" applet turned on in gnome-panel?
You need to find the script where gnome-panel is launched, and set environment variable GTK_MENUBAR_NO_MAC=1. Or you could start gnome by a manual ~/.xinitrc:
Code:
/usr/libexec/gnome-settings-daemon &
nautilus &
metacity &
GTK_MENUBAR_NO_MAC=1 exec gnome-panel
Remove the "menu bar" plugin, then remove the "GTK_MENUBAR_NO_MAC=1", and restart gnome.
(if you start gnome-panel with GTK_MENUBAR_NO_MAC=1, all apps launched from the panel wouldn't show the mac menubar)
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
Robor
It is this exact error:
(gnome-panel:5100): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion 'GTI_IS_WIDGET (widget)' failed
(gnome-panel:5100): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion 'GTI_IS_WIDGET (widget)' failed
ALSA: underrun, at least 0ms.
(gnome-panel:5100): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion 'GTI_IS_WIDGET (widget)' failed
(gnome-panel:5100): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion 'GTI_IS_WIDGET (widget)' failed
(gnome-panel:5100): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion 'GTI_IS_WIDGET (widget)' failed
Cutting log (size: 101938, max 100000)make transparent again
make transparent again
make transparent again
make transparent again
The application 'nautilus' lost its connection to the display :0.0;
most likely the X server was shut down or you killed/destroyed the application
gdesklets-daemon: Fatal IO error 104 (Connection reset by peer) on X server :0.0.
gnome-panel: Fatal IO error 104 (Connection reset by peer) on X server :0.0.
gnome-terminal: Fatal IO error 104 (Connection reset by peer) on X server :0.0.
update-notifier: Fatal IO error 104 (Connection reset by peer) on X server :0.0.
nm-applet: Fatal IO error 104 (Connection reset by peer) on X server :0.0.
Window manager warning: Lost connection to the display ' :0.0':
most likely the X server was shut down or you killed/destroyed the window manager
The application 'gnome-cups-icon' lost its connection to the display :0.0;
most likely the X server was shut down or you killed/destroyed the application
(nautilus:13367): Gnome-CRITICAL **: gnome_program_get_app_version: assertion 'program !=NULL' failed
Any ideas/suggestions on how to fix the errors above? I can't get into X right now. :(
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
So any step by step instructions to create a DEB for Ubuntu or could anybody do it and share it?
Thanks
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
I am going to try and make a dapper deb of this if I can figure out patching a debian source lol ;)
-
1 Attachment(s)
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
I already have the patch and I have built the debs but I have built them to work fine also with compiz as my first attempt of building made gnome and gtk response feel like "OMG, I can go out for a walk before apps are done loading" so my current debs seems to work fine with compiz, I'll wait for an answer from AqD as he/she might be working on something nice and I get to test a bit how they work.
But I'll attach the patch that goes into /debian/patches if you gonna build.
Patch is for edgy.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
jannol
I already have the patch and I have built the debs but I have built them to work fine also with compiz as my first attempt of building made gnome and gtk response feel like "OMG, I can go out for a walk before apps are done loading" so my current debs seems to work fine with compiz, I'll wait for an answer from AqD as he/she might be working on something nice and I get to test a bit how they work.
But I'll attach the patch that goes into /debian/patches if you gonna build.
Is this patch for the Edgy gtk, because the dapper one is 2.8 not 2.10.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
I have made a deb for Ubuntu Dapper, but I have nowhere to host it (it is too large to attach). Can someone host it please?
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
flargen
I have made a deb for Ubuntu Dapper, but I have nowhere to host it (it is too large to attach). Can someone host it please?
I can host it or upload the deb to rapidshare an then I provide a mirror
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Perfect, thx.
A mirror here
My only problem is that I can't change the opacity, it seems that the global variables aren't working for me
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Tried using the .deb file. Here's what I get:
"Error - The Application "gnome-panel" has quit unexpectedly."
and
"Error - I've detected a panel already running, and will now exit."
This happens over and over despite doing 'Close' and 'OK'. Tried kill -9 on the processes and they just restart over and over. :-/
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
Robor
Tried using the .deb file. Here's what I get:
"Error - The Application "gnome-panel" has quit unexpectedly."
and
"Error - I've detected a panel already running, and will now exit."
This happens over and over despite doing 'Close' and 'OK'. Tried kill -9 on the processes and they just restart over and over. :-/
Okay... After I installed the .deb and rebooted I was getting the errors above. I did an 'apt-get update' and 'apt-get upgrade' and got a bunch of updates. Now when I log in I get my desktop with no errors but I don't have the 'Mac-style Menu Bar' either. :-/ Here's what I did...
1. I downloaded the .deb file from the link in this thread
2. I did a 'dpkg -i libgtk2.0-0_2.8.20-0ubuntu1_i386.deb'
3. It ran for a short bit and finished with no output/errors
4. Rebooted
5. When my gnome-panel launched I saw the bar at the bottom but it didn't finish and I got into a loop of messages saying gnome-panel detected a panel already running and was exiting. All I could do is ctrl-alt-f9 out and I think I did 'sudo gdm stop'
6. I did apt-get update & apt-get upgrade and it said libgtk2.0-0 2.8.20-0ubuntu1 needed updated. I allowed it to update.
7. I did a gdm restart and was able to log in and got my desktop but with the regular gnome-panel menu bar at the bottom (not sure if it matters but I use only 1 panel instead of the default 2)
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Robor: I do not know why this might affect your panel, other than the menu bar (default panel menu in Ubuntu with 3 menus). There is some issue with that apparently, but I'm not sure what - search this thread I guess!
I do know, however, that when you do an upgrade, the old version is automatically reinstalled. I do not know how to overcome this without increasing the version number, and I don't really want to do that.
I apologise for my inexperience with building deb packages!
Also, the menu bar only appears at the top when an application is running, so it won't be there when you first log in.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
flargen
Robor: I do not know why this might affect your panel, other than the menu bar (default panel menu in Ubuntu with 3 menus). There is some issue with that apparently, but I'm not sure what - search this thread I guess!
I do know, however, that when you do an upgrade, the old version is automatically reinstalled. I do not know how to overcome this without increasing the version number, and I don't really want to do that.
I apologise for my inexperience with building deb packages!
Also, the menu bar only appears at the top when an application is running, so it won't be there when you first log in.
I have no idea what's wrong. I just applied your .deb and rebooted and the gnome-panel got into a loop. I did some googleing around on the error but didn't find anything recent that was similar to my problem.
No worries here though. Thanks for the .deb. I'm glad it worked for some people here. I looked through this thread and the original linked by the OP but no help here (that I could find). I would've liked to see the menu bar working on my system but it's okay. Maybe someone will find a fix or have another deb or update of this thing. It's really slick looking.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
Robor
Tried using the .deb file. Here's what I get:
"Error - The Application "gnome-panel" has quit unexpectedly."
and
"Error - I've detected a panel already running, and will now exit."
This happens over and over despite doing 'Close' and 'OK'. Tried kill -9 on the processes and they just restart over and over. :-/
Your gnome-panel may have turned on the "menu bar" applet, which is incompatible with mac menubar.
Try to run gnome-panel with environment variable GTK_MENUBAR_NO_MAC=1, then remove the "menu bar" applet, restart panel.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
Robor
No worries here though. Thanks for the .deb. I'm glad it worked for some people here. I looked through this thread and the original linked by the OP but no help here (that I could find). I would've liked to see the menu bar working on my system but it's okay. Maybe someone will find a fix or have another deb or update of this thing. It's really slick looking.
Some problems can't be fixed - it's about how apps use the menubar widget. The patch can't change their code.
BTW gnome-panel 2.14 has been confirmed to work fine without the "menu bar" applet.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
AqD
Your gnome-panel may have turned on the "menu bar" applet, which is incompatible with mac menubar.
Try to run gnome-panel with environment variable GTK_MENUBAR_NO_MAC=1, then remove the "menu bar" applet, restart panel.
This is probably a stupid question but how do I go about doing that? I know I can kill and relaunch 'gnome-panel' from the command line but how do I give it the variable? Do I edit a file or use a switch?
Thank you for helping the noob here. :)
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
Robor
This is probably a stupid question but how do I go about doing that? I know I can kill and relaunch 'gnome-panel' from the command line but how do I give it the variable? Do I edit a file or use a switch?
Thank you for helping the noob here. :)
Okay, I figured out that I just needed to remove 'Menu Bar' from my panel. I did this, reran the .deb file, did a killall gnome-panel, restarted the panel, and the same thing happens - gnome-panel restarting loop. Still not working here... ](*,)
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
there's no need to reinstall the deb, did you remove the menubar from the panel? And the panel restarting can be temporarily disabled from the sessions properties, if you remove the menubar you dont need to use any GTK_MENUBAR_NO_MAC=1. I tried using the panel with the menubar on it using GTK_MENUBAR_NO_MAC=1 but no go for me although I don't use that menu anyways.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Any possibility of making title width dynamic according to the application name and position it left to the menu (left side the screen)
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
jannol
there's no need to reinstall the deb, did you remove the menubar from the panel? And the panel restarting can be temporarily disabled from the sessions properties, if you remove the menubar you dont need to use any GTK_MENUBAR_NO_MAC=1. I tried using the panel with the menubar on it using GTK_MENUBAR_NO_MAC=1 but no go for me although I don't use that menu anyways.
Well the only way I've been able to stop the looping is to install the Ubuntu update so if I want to try to get it working I've got to reapply the .deb.
However, I have removed the 'menubar' from the panel and I can apply the .deb and restart gnome-panel but all I'm getting is the standard gnome-panel, not the Mac-style Menu Bar. I'm launching gnome-panel from the command line.
Here's the error I'm getting when I try to launch from the command line:
"robor007@Home-T42-Ubuntu:~/Themes/MacOSXGtkMenuBar$ sudo gnome-panel restart
(gnome-panel:5523): GdkPixbuf-CRITICAL **: gdk_pixbuf_scale_simple: assertion `dest_width > 0' failed
** ERROR **: file /build/buildd/gnome-panel-2.14.3/./gnome-panel/panel-menu-bar.c: line 263 (panel_menu_bar_parent_set): assertion failed: (!widget->parent || PANEL_IS_WIDGET (widget->parent))"
This is my ~./xsession-errors:
Code:
robor007@Home-T42-Ubuntu:~$ cat .xsession-errors
/etc/gdm/PreSession/Default: Registering your session with wtmp and utmp
/etc/gdm/PreSession/Default: running: /usr/bin/sessreg -a -w /var/log/wtmp -u /var/run/utmp -x "/var/lib/gdm/:0.Xservers" -h "" -l ":0" "robor007"
/etc/gdm/Xsession: Beginning session setup...
SESSION_MANAGER=local/Home-T42-Ubuntu:/tmp/.ICE-unix/5004
Gnome-Message: gnome_execute_async_with_env_fds: returning -1
Gnome-Message: gnome_execute_async_with_env_fds: returning -1
(gnome-panel:5075): GdkPixbuf-CRITICAL **: gdk_pixbuf_scale_simple: assertion `dest_width > 0' failed
Starting gdesklets-daemon...
Connected to daemon in 6943 milliseconds.
(gnome-terminal:5238): Gtk-CRITICAL **: gtk_widget_destroy: assertion `GTK_IS_WIDGET (widget)' failed
(gnome-terminal:5238): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion `GTK_IS_WIDGET (widget)' failed
(gnome-terminal:5238): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion `GTK_IS_WIDGET (widget)' failed
(gnome-terminal:5238): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion `GTK_IS_WIDGET (widget)' failed
(gnome-terminal:5238): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion `GTK_IS_WIDGET (widget)' failed
(gnome-terminal:5238): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion `GTK_IS_WIDGET (widget)' failed
(gnome-terminal:5238): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion `GTK_IS_WIDGET (widget)' failed
(gnome-panel:5075): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion `GTK_IS_WIDGET (widget)' failed
(gnome-panel:5075): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion `GTK_IS_WIDGET (widget)' failed
Cutting log (size: 101846, max: 100000)
(gnome-panel:5952): GdkPixbuf-CRITICAL **: gdk_pixbuf_scale_simple: assertion `dest_width > 0' failed
LoadPlugin: failed to initialize shared library /usr/lib/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so [/usr/lib/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so: undefined symbol: XtCalloc]
LoadPlugin: failed to initialize shared library /usr/lib/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so [/usr/lib/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so: undefined symbol: XtCalloc]
(gnome-panel:6290): GdkPixbuf-CRITICAL **: gdk_pixbuf_scale_simple: assertion `dest_width > 0' failed
(gnome-panel:6329): GdkPixbuf-CRITICAL **: gdk_pixbuf_scale_simple: assertion `dest_width > 0' failed
(gnome-panel:6329): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion `GTK_IS_WIDGET (widget)' failed
(gnome-panel:6329): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion `GTK_IS_WIDGET (widget)' failed
(gnome-panel:6498): GdkPixbuf-CRITICAL **: gdk_pixbuf_scale_simple: assertion `dest_width > 0' failed
(gnome-panel:6526): GdkPixbuf-CRITICAL **: gdk_pixbuf_scale_simple: assertion `dest_width > 0' failed
(gnome-panel:6526): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion `GTK_IS_WIDGET (widget)' failed
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
I got a same problem? Need help please... Thanks
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
Robor
Well the only way I've been able to stop the looping is to install the Ubuntu update so if I want to try to get it working I've got to reapply the .deb.
However, I have removed the 'menubar' from the panel and I can apply the .deb and restart gnome-panel but all I'm getting is the standard gnome-panel, not the Mac-style Menu Bar. I'm launching gnome-panel from the command line.
Here's the error I'm getting when I try to launch from the command line:
"robor007@Home-T42-Ubuntu:~/Themes/MacOSXGtkMenuBar$ sudo gnome-panel restart
(gnome-panel:5523): GdkPixbuf-CRITICAL **: gdk_pixbuf_scale_simple: assertion `dest_width > 0' failed
** ERROR **: file /build/buildd/gnome-panel-2.14.3/./gnome-panel/panel-menu-bar.c: line 263 (panel_menu_bar_parent_set): assertion failed: (!widget->parent || PANEL_IS_WIDGET (widget->parent))"
Why do you start gnome-panel as sudo? and I don't think there's any restart option for the gnome-panel command, that is done by the gnome-session.
The global menubar is standalone and doesn't start inside gnome-panel although that would be nice if it did. So there's no use of restarting gnome-panel or anything if it doesn't contain the applet menubar anymore, confusing with all the names huh?
if you installed all the debs needed, just open any gtk application ex gedit and you will see the menubar at the top as if it was a panel. You need to log out before the newly installed gtk libs kicks in.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
jannol
Why do you start gnome-panel as sudo? and I don't think there's any restart option for the gnome-panel command, that is done by the gnome-session.
The global menubar is standalone and doesn't start inside gnome-panel although that would be nice if it did. So there's no use of restarting gnome-panel or anything if it doesn't contain the applet menubar anymore, confusing with all the names huh?
if you installed all the debs needed, just open any gtk application ex gedit and you will see the menubar at the top as if it was a panel. You need to log out before the newly installed gtk libs kicks in.
Okay, now I'm *really* confused. What is the 'global menubar' that I'm supposed to disable/remove? What I'm doing is going to my gnome-panel, right clicking on the 'menu bar' piece, and selecting remove from panel. I looked in my 'sessions' while in Gnome and I don't have any menu-bar or menubar listed there. There's nothing about it in my startup programs either. Maybe I'm not using it and this is a snipe hunt? ;) :P
I only installed the .deb file done by flargen and it doesn't produce any errors. Is there something more I'm supposed to be doing? After I do that I was doing a killall on gnome-panel then restarting it. After that, if I open gedit I do get a bar at the top of the screen but I don't have the Mac-style launcher that I'm trying to get.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
The global menubar is the Mac-style menu bar and it's NOT a launcher if you by that meant "some panel with application launchers", if thats what you want you are in the wrong thread.
This Mac-style menu bar aka global menubar widget is simply a method to have all the windows menubar (ex File Edit etc.) as a top panel instead of having it inside every window.
The bug about the gnome applet menubar is that there's an applet that is default for ubuntu setups with the menubar (yes also called menubar) that contains the applications, places and system with its submenus and that applet doesn't work very well if using this mac-style menu bar.
This global menubar (mac-style menubar) is not a replacement for that applet.
I hope you understand better now and I am sorry if I was unclear.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
I think effort of this project is to make an "Mac-style Menu Bar", which should support global menubar as well as applets on it (Like the one OSX already have; perhaps KDE as well). Hope this will be implemented in long term.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
jannol
The global menubar is the Mac-style menu bar and it's NOT a launcher if you by that meant "some panel with application launchers", if thats what you want you are in the wrong thread.
This Mac-style menu bar aka global menubar widget is simply a method to have all the windows menubar (ex File Edit etc.) as a top panel instead of having it inside every window.
The bug about the gnome applet menubar is that there's an applet that is default for ubuntu setups with the menubar (yes also called menubar) that contains the applications, places and system with its submenus and that applet doesn't work very well if using this mac-style menu bar.
This global menubar (mac-style menubar) is not a replacement for that applet.
I hope you understand better now and I am sorry if I was unclear.
Ahhhh... When I saw the OP's message titled 'Mac-style Menu Bar' and his screenshot with that launcher bar that looks like the one on OS X I thought that's what he was talking about. I actually have the 'global menubar' working when I use the .deb file. To be honest, I really don't like the way it works though. I prefer the menus to be in the individual applications rather than a single pane. Plus it adds another panel taking away desktop space (I like as much as I can get). ;)
I'm sorry for the confusion. Thank you everyone for helping the noob here. If nothing else, I leared better how to troubleshoot X errors.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
AqD
Because the panel is actually covered by all the menubars of your applications :D
I make the menubar transparent rather than hidden when the app loses focus, so it can keep the dock space on desktop (that fixes your desktop icon alignment, maxmized windows, etc)
Uh, how exactly do you stop the menubar from hiding itself on lost app-focus?
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
help me
due to my foolishness i'm not able to boot into gnome. i just downloaded the package from http://aquila.deus.googlepages.com/g...3-2.pkg.tar.gz and replaced original contents.i was previously running gtk-2.4.0 version. n when i restarted i could not boot right. i've the mouse cursor busy..and gdm does'nt show up..help me or do i've to reinstall.
thanx in advance :( :confused:
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
ghanu
help me
due to my foolishness i'm not able to boot into gnome. i just downloaded the package from
http://aquila.deus.googlepages.com/g...3-2.pkg.tar.gz and replaced original contents.i was previously running gtk-2.4.0 version. n when i restarted i could not boot right. i've the mouse cursor busy..and gdm does'nt show up..help me or do i've to reinstall.
thanx in advance :( :confused:
Sorry for the problem. You need to reinstall gtk 2.4 first. The environment is too old and you can't *just* install any gtk-2.10.x on the machine and expect the apps to work. (the binary is only for existing gtk-2.10 users)
If you can upgrade the system to gtk 2.8 (and related dependencies) and confirm everyting is working, then the 2.8 patch should work for you. I think there are other people who provide the 2.8 binary.
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Latest patch for 2.10.5 contains an important fix to make the menubar remaining visible when you move the main window or use popup menu.
If you want to try, get the patches from http://aur.archlinux.org/packages.ph...ails=1&ID=6447. It won't be put to my home page until I can upload the binary again (google quota bug...)
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Quote:
Originally Posted by
AqD
Sorry for the problem. You need to reinstall gtk 2.4 first. The environment is too old and you can't *just* install any gtk-2.10.x on the machine and expect the apps to work. (the binary is only for existing gtk-2.10 users)
If you can upgrade the system to gtk 2.8 (and related dependencies) and confirm everyting is working, then the 2.8 patch should work for you. I think there are other people who provide the 2.8 binary.
thanx AqD for the response, i'll upgrade..
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
I'm working on a xfce panel applet (4.4). I just confirmed that my mac menubar doesn't need any modification in order to integrate with panel, and multi-menubars can work with gtk notebook (tabbed widget).
-
Re: Mac-style Menu Bar for GTK and Java/Swing applications!
Great, rebuilding with the new patch, maybe you possibly could look if it is possible to get it as a gnome-applet also?