PDA

View Full Version : Mac-style Menu Bar for GTK and Java/Swing applications!



Pages : [1] 2 3 4 5 6 7 8 9 10 11 12

AqD
August 23rd, 2006, 03:24 AM
Edit 071204: the links provided in this post are not valid any longer. Please see the wiki page (https://wiki.ubuntu.com/global_menu)
__________________________________________________ __________________________________________________ ________________________________


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 (http://aur.archlinux.org/packages/gtk2-aqd/gtk2-aqd/gtkmenubar.diff) | 2.8.x (http://aur.archlinux.org/packages/gtk2-aqd/gtk2-aqd/gtkmenubar-2.8.diff) | AUR (http://aur.archlinux.org/packages.php?do_Details=1&ID=6447)
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/117/284304699_60d79c3555_o.png) http://static.flickr.com/112/275099051_58c8d4fff0_m.jpg (http://static.flickr.com/112/275099051_58c8d4fff0_o.png) http://static.flickr.com/108/263218425_fce75ce02b_m.jpg (http://static.flickr.com/108/263218425_fce75ce02b_o.png)
Screenshots from zammi (left 2) and Cimi86 (right 1):
http://static.flickr.com/117/284328107_af99da556d_m.jpg (http://static.flickr.com/117/284328107_af99da556d_o.jpg) http://static.flickr.com/112/284328104_6995c6f4b7_m.jpg (http://static.flickr.com/112/284328104_6995c6f4b7_o.jpg) http://static.flickr.com/114/290063868_264a518fef_m.jpg (http://static.flickr.com/114/290063868_264a518fef_o.png)

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 (http://aur.archlinux.org/packages.php?do_Details=1&ID=6707)
- 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 (http://aur.archlinux.org/packages.php?do_Details=1&ID=7054) | GNOME (http://aur.archlinux.org/packages.php?do_Details=1&ID=7070)
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

kpolice
August 24th, 2006, 06:09 AM
Wow, trully amazing.

andlinux21
August 24th, 2006, 06:15 AM
Will this work on Breezy or just dapper I would love to try this

kpolice
August 24th, 2006, 06:38 AM
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?

AqD
August 24th, 2006, 12:25 PM
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 (http://aur.archlinux.org/packages.php?do_Details=1&ID=6447)

PS: if you have never used gtk 2.10 before and going to upgrade, you may get some theme-related problems listed there (http://bbs.archlinux.org/viewtopic.php?t=23549#181071) (with solutions)

sciurus
August 25th, 2006, 04:57 AM
It would be nice if the Gnome developers offered this as an option like KDE does.

AqD
August 27th, 2006, 06:40 PM
I created a feature request with this patch => http://bugzilla.gnome.org/show_bug.cgi?id=353076

Ptero-4
August 28th, 2006, 06:27 AM
I created a feature request with this patch => http://bugzilla.gnome.org/show_bug.cgi?id=353076

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).

zammi
September 1st, 2006, 08:48 AM
Any chance of getting debs for Dapper :)

mejy
September 1st, 2006, 11:19 AM
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?

gisluz
September 11th, 2006, 08:43 AM
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

hizaguchi
September 11th, 2006, 02:25 PM
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.

gisluz
September 11th, 2006, 03:27 PM
What???

KDE already get it?

hizaguchi
September 11th, 2006, 03:31 PM
Yeah, KDE has had this feature for a long time. It's just an option you toggle in kcontrol.

AqD
September 18th, 2006, 08:39 AM
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 :)

AqD
September 18th, 2006, 08:44 AM
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:

/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

AqD
September 18th, 2006, 08:46 AM
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...)

ShinjiLeery
September 18th, 2006, 11:36 PM
With the configure i have this error:


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.

AqD
September 19th, 2006, 07:10 AM
With the configure i have this error:


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

ShinjiLeery
September 19th, 2006, 09:31 AM
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

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.

AqD
September 19th, 2006, 11:20 AM
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.

Robor
September 19th, 2006, 03:42 PM
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?

jannol
September 19th, 2006, 04:41 PM
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.

fenwik
September 19th, 2006, 11:26 PM
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

AqD
September 20th, 2006, 05:31 AM
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.

AqD
September 20th, 2006, 05:33 AM
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.

AqD
September 20th, 2006, 05:36 AM
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)

supriyadisw
September 20th, 2006, 09:40 AM
Wow, trully amazing.

Yes. It's so beautiful.

sunilsattiraju
September 20th, 2006, 10:39 AM
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

Robor
September 20th, 2006, 03:04 PM
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.

AqD
September 20th, 2006, 03:33 PM
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.
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
[user ~]$ export GTK_MENUBAR_INACTIVE_OPACITY=0.75
Set when a program starts from shell, syntax like:
[user ~]$ GTK_MENUBAR_NO_MAC=1 bluefishor
[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.


------------------------------------------------------------------
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.

AqD
September 20th, 2006, 03:36 PM
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)

Robor
September 20th, 2006, 04:22 PM
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?

AqD
September 20th, 2006, 05:36 PM
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 :)

Robor
September 20th, 2006, 10:31 PM
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'

:(

AqD
September 21st, 2006, 06:56 AM
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?

atie
September 21st, 2006, 12:40 PM
@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? :)

atie
September 21st, 2006, 01:27 PM
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.

Robor
September 21st, 2006, 02:20 PM
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

AqD
September 21st, 2006, 03:34 PM
@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 ;)

AqD
September 21st, 2006, 03:48 PM
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:
/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)

Robor
September 21st, 2006, 06:37 PM
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. :(

kpolice
September 21st, 2006, 07:12 PM
So any step by step instructions to create a DEB for Ubuntu or could anybody do it and share it?

Thanks

flargen
September 21st, 2006, 10:04 PM
I am going to try and make a dapper deb of this if I can figure out patching a debian source lol ;)

jannol
September 21st, 2006, 10:42 PM
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.

flargen
September 21st, 2006, 11:21 PM
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.

jannol
September 21st, 2006, 11:43 PM
yes

flargen
September 21st, 2006, 11:48 PM
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?

kpolice
September 22nd, 2006, 12:17 AM
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

flargen
September 22nd, 2006, 12:56 AM
Here (http://rapidshare.de/files/33979758/libgtk2.0-0_2.8.20-0ubuntu1_i386.deb) it is.

kpolice
September 22nd, 2006, 01:24 AM
Perfect, thx.

A mirror here (http://www.capc-online.net/dloads/linux/deb/libgtk2.0-0_2.8.20-0ubuntu1_i386.deb)

My only problem is that I can't change the opacity, it seems that the global variables aren't working for me

Robor
September 22nd, 2006, 07:31 PM
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. :-/

Robor
September 22nd, 2006, 08:20 PM
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)

flargen
September 22nd, 2006, 11:27 PM
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.

Robor
September 23rd, 2006, 06:29 AM
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.

AqD
September 24th, 2006, 10:27 AM
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.

AqD
September 24th, 2006, 10:32 AM
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.

Robor
September 25th, 2006, 02:15 PM
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. :)

Robor
September 25th, 2006, 10:29 PM
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... ](*,)

jannol
September 25th, 2006, 10:39 PM
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.

zammi
September 26th, 2006, 06:25 AM
Any possibility of making title width dynamic according to the application name and position it left to the menu (left side the screen)

Robor
September 26th, 2006, 02:25 PM
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:


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

supriyadisw
September 26th, 2006, 03:41 PM
I got a same problem? Need help please... Thanks

jannol
September 26th, 2006, 08:41 PM
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.

Robor
September 26th, 2006, 10:01 PM
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.

jannol
September 26th, 2006, 11:47 PM
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.

zammi
September 27th, 2006, 01:28 PM
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.

Robor
September 27th, 2006, 02:13 PM
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.

tobiax
September 29th, 2006, 11:59 AM
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?

ghanu
September 30th, 2006, 10:38 AM
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:

AqD
October 4th, 2006, 06:34 AM
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.

AqD
October 4th, 2006, 06:58 AM
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.php?do_Details=1&ID=6447. It won't be put to my home page until I can upload the binary again (google quota bug...)

ghanu
October 4th, 2006, 08:07 AM
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..

AqD
October 5th, 2006, 03:59 PM
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).

jannol
October 5th, 2006, 06:14 PM
Great, rebuilding with the new patch, maybe you possibly could look if it is possible to get it as a gnome-applet also?

agotfred
October 5th, 2006, 07:03 PM
Make this a gnome applet and will be my god.

flargen
October 6th, 2006, 12:31 AM
Gnome Applet!

AqD
October 6th, 2006, 05:19 AM
Great, rebuilding with the new patch, maybe you possibly could look if it is possible to get it as a gnome-applet also?

Sure it's possible, but since I don't use gnome I wouldn't spend much time after initial release. So it's better if some gnome user could do this :) (it should be almost as same as my xfce one)

PS: that's the same reason I don't want to maintain the 2.8 patch :)

AqD
October 6th, 2006, 10:42 AM
Panel applet for xfce 4.4:

http://static.flickr.com/120/268613776_a89ec71ab3_m.jpg (http://static.flickr.com/120/268613776_a89ec71ab3_o.png) http://static.flickr.com/108/263218425_fce75ce02b_m.jpg (http://static.flickr.com/108/263218425_fce75ce02b_o.png)

Source and .desktop: Mac Menu plugin (http://aur.archlinux.org/packages.php?do_Details=1&ID=7054) | Round corner plugin (http://aur.archlinux.org/packages.php?do_Details=1&ID=7127)

Binary builds for i686 are there => http://people.os-zen.net/aqd/repository/ (you need gtk2-aqd and xfce4-macmenu-plugin, and optional xfce4-corner-plugin)

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.x and xfce 4.4 rc or beta installed, then untar the .tar.gz files and copy all non-dotfiles. If you install to a different xfce4 location, remember to change the line "X-XFCE-Exec=..." in xfce4-macmenu-plugin.desktop and xfce4-corner-plugin.desktop


Mac Menu Applet:

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 right-click on it.

You can right-click to get the panel menu (for restart/quit) if there is no window focused.

Problems and solutions: 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 xfce4-panel will catch them back (or switch to gnome-panel, which I'll make the same plugin soon).
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
Restarting xfwm4 may cause some menubars to disappear - restarting xfce4-panel will solve this
If your application crashes when the applet/panel quits, use my latest gtk2 patch/binary (for gtk 2.10 and 2.8).

Round Corner Applet:

Just add two corners, move one to left edge and the other to right edge, then left-click on the right corner to change its direction (will be saved automatically).


Cheers!

agotfred
October 6th, 2006, 11:40 AM
I wouldn't mind helping out, but my problem is that I don't have any C/C++ experience really. I mostly script in Lua/PHP. I have no idea how the gnome APIs work, and no idea how the C syntax works.

agotfred
October 6th, 2006, 11:45 AM
Panel applet for xfce 4.4:

http://static.flickr.com/79/262104515_e841324128_m.jpg (http://static.flickr.com/79/262104515_e841324128_o.png)

Source and .desktop: http://aur.archlinux.org/packages.php?do_Details=1&ID=7054

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

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.x and xfce 4.4 rc or beta installed, then untar the .tar.gz files and copy all non-dotfiles. If you install to a different xfce4 location, remember to change the line "X-XFCE-Exec=..." in macmenu.desktop

Cheers!

Wow, that looks very nice.

Here's a suggestion, while it might be kinda hackish: KDE/swing(with your swing patch?) applications can use a feature like this too. Would it be possible to catch their mac-style menubar in the applet too?

AqD
October 6th, 2006, 04:57 PM
Wow, that looks very nice.

Here's a suggestion, while it might be kinda hackish: KDE/swing(with your swing patch?) applications can use a feature like this too. Would it be possible to catch their mac-style menubar in the applet too?

Yes it's possible, but
The swing patch is not very usable. Since most of swing apps are development tools, the hotkeys on menubar are rather important, but somehow I can't get them to work with my patch (I'm a complete swing noob :-D).

Do people actually run KDE apps under gnome/xfce? That sounds weird to me but I will do if there are several real users who use this everyday.

BTW the plugin should be able to solve all compiz/beryl-related problems now, and I'll make it for gnome-panel once the 2.16 binary for arch linux is ready :)

AqD
October 6th, 2006, 05:00 PM
I wouldn't mind helping out, but my problem is that I don't have any C/C++ experience really. I mostly script in Lua/PHP. I have no idea how the gnome APIs work, and no idea how the C syntax works.

It's ok I'll do it once gnome 2.16 works here :) I realized there is very little panel-dependent code, and they will probably be the same (only different function names).

kpolice
October 6th, 2006, 10:09 PM
:( I wish it was for GNOME.

AqD
October 7th, 2006, 02:38 PM
:( I wish it was for GNOME.

I'll do it tonight, for gnome 2.16 :) But it may not be compatible with older gnome (dbus thing??) so you guys will need to upgrade ;)

agotfred
October 7th, 2006, 03:18 PM
It's fine mate, everyone will eventually be using the new gnome. No reason not to.

reacocard
October 7th, 2006, 04:14 PM
I'll do it tonight, ...

=D> =D> =D> =D> =D> =D> =D>
Can't wait for it. :-D

agotfred
October 7th, 2006, 10:52 PM
Is it tonight yet?

Rob2687
October 8th, 2006, 02:43 AM
Well it's been 12 hours as of this post so it's either tonight or tommorrow morning already. :p

AqD
October 8th, 2006, 09:05 AM
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 :D anyway it's done now :P

Panel applet for gnome 2.16:

http://static.flickr.com/99/263659404_0dcade1572_m.jpg (http://static.flickr.com/99/263659404_0dcade1572_o.png)

Source and data files: http://aur.archlinux.org/packages.php?do_Details=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: 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.
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
Restarting metacity may cause some menubars to disappear - restarting gnome-panel will solve this
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.

agotfred
October 8th, 2006, 11:32 AM
Thanks a lot. About to give it a go now.

agotfred
October 8th, 2006, 12:25 PM
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.

AqD
October 8th, 2006, 03:09 PM
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.

:D

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

agotfred
October 8th, 2006, 03:48 PM
Oh, I see. Any reason why it's broken? =)

jannol
October 9th, 2006, 02:34 AM
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. :D

AqD
October 9th, 2006, 03:39 AM
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. :D

Ah, what WM are you using? And do you have the latest 2.10.x patch (http://aur.archlinux.org/packages/gtk2-aqd/gtk2-aqd/gtkmenubar.diff) (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 ;)

AqD
October 9th, 2006, 06:53 AM
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....

agotfred
October 9th, 2006, 10:52 AM
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.

AqD
October 9th, 2006, 10:58 AM
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.

Ah, do you use the rightmost button to move it??

(It won't be easy to fix anything because gnome panel API is almost undocumented...)

AqD
October 9th, 2006, 11:08 AM
New gtk2 2.10.x patch released at GMT 20061009 [10:04:48]. Changes: works with compiz/beryl again You can set excluded programs in GTK_MENUBAR_NO_MAC, see the original post. And gnome-panel with menu bar will no longer have problems

jannol
October 9th, 2006, 12:51 PM
Ah, what WM are you using? And do you have the latest 2.10.x patch (http://aur.archlinux.org/packages/gtk2-aqd/gtk2-aqd/gtkmenubar.diff) (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 ;)

I use beryl but I did try metacity also and it is/was the same, currently rebuilding with new patch and checking for anything odd in the build progress.

Robor
October 9th, 2006, 02:31 PM
Hello AqD,

I see in your screenshot you have a application launcher bar at the bottom right. What is that? Is it the gdesklet launcher bar?

AqD
October 9th, 2006, 03:14 PM
Hello AqD,

I see in your screenshot you have a application launcher bar at the bottom right. What is that? Is it the gdesklet launcher bar?

It's xfce panel. Xfce 4.4 has a new panel system that works like gnome's.

Robor
October 9th, 2006, 03:55 PM
It's xfce panel. Xfce 4.4 has a new panel system that works like gnome's.

Ah, I will have to check that out. Thanks! :)

AqD
October 9th, 2006, 04:50 PM
hmmm does anyone here have multihead and willing to help me test the applets/menubar??

ferenkileen
October 9th, 2006, 06:39 PM
an ubuntu package is really appreciated :twisted:

AqD
October 9th, 2006, 07:12 PM
an ubuntu package is really appreciated :twisted:

ask a real ubuntu user then :D

ferenkileen
October 10th, 2006, 09:00 AM
but I saw an ubuntu package in the previous post.... I hope that someone would do it again....

AqD
October 10th, 2006, 02:32 PM
but I saw an ubuntu package in the previous post.... I hope that someone would do it again....

if you're on edgy you could use my binaries directly. the latest applets/patch are not for gtk 2.8 anyway :)

flargen
October 10th, 2006, 04:55 PM
UPDATED! - now version 1.0.6

Deb for Ubuntu Edgy. Get it here (http://mogoshare.com/97619). Also, for the panel applet, you have to copy the attached files to these locations:

sudo mv /path/to/macmenu-applet /usr/lib/gnome-applets/
sudo mv /path/to/GNOME_MacMenuApplet.server /usr/lib/bonobo/servers/

Note - Gtk might try to update itself with the unpatched version!

Enjoy

zAo
October 10th, 2006, 08:20 PM
I have made a deb for GTK with the newest patch for Ubuntu Edgy. Get it here (http://rapidshare.de/files/36226245/libgtk2.0-0_2.10.6-0ubuntu1_i386.deb.html) or here (http://mogoshare.com/742395). Also, for the panel applet, you have to copy the attached files to these locations:

sudo mv /path/to/gnome-macmenu-applet /usr/lib/gnome-applets/
sudo mv /path/to/GNOME_MacMenuApplet.server /usr/lib/bonobo/servers/

Note - Gtk might try to update itself with the unpatched version!

;)
Thanks a LOT. I can add "Mac Menu" but I don't see a thing. Still got the menus in all applications too. Tried logging out/in.

flargen
October 10th, 2006, 11:48 PM
zAo, I don't mean to sound stupid but - are you sure you actually installed the patched GTK?

AqD
October 11th, 2006, 05:37 AM
multi-head support added to xfce plugin and gnome applet 1.0.1.

Please help me to test, because I don't have two monitors ;)

mangar
October 11th, 2006, 12:19 PM
my tiny little suggestion:

can you define a standard container for the menu?
this way all the gui toolkits may have a single point of
reference for using the menu element, and it may allow
flexibly in defining the menu gui element;

for example:
1. radial menu on shortcut key (like in neverwinter nights)
2. large icons for edit, insert, file, etc on the buttom of the
screen (for simplified applications).
3. global menu
4. per application menu.
5. menu as stacked of actions in a large round button, like in office 2007
6. little animated penguins that run away when clicked.



pseudo code example for a possible container:

// freedesktop.org menu item standard container
// 2006, bsd, copyright AqD
// Mangar_is_a_silly_alias (tm)
application_menu_container
{
app_id; //i don't know if it's necessary (can be suid)
app_name; //the name of the initializing application.
app_screen; //the screen (physical / virtual) it's on
set[menu_element] menuElements; //holds the menu elements (file, edit, etc)
menu_element
{
image; //image for the menuelement (optional)
name;
set[menu_element];submenu, commands
command;// (abstarct - submenu, action, checkbox, whatever)
}
}

mangar
October 11th, 2006, 12:20 PM
forums system doesn't retains tabs, sorry

kpolice
October 11th, 2006, 04:37 PM
It retains tabs if you use the CODE tag :P

AqD
October 11th, 2006, 05:57 PM
my tiny little suggestion:

can you define a standard container for the menu?
this way all the gui toolkits may have a single point of
reference for using the menu element, and it may allow
flexibly in defining the menu gui element;

...
Ah, it'd be very difficult to make such changes into current GUI toolkits on X. However, the panel applets/plugins can be made to grab menubars from KDE apps as well (will be done soon). So there won't be any difference as long as you use only the two toolkits ;)

AqD
October 11th, 2006, 06:07 PM
Latest changes:

gtk2-aqd 2.10.6-4: remove a lot of code for standalone menubar, change to a model similar to that of KDE's. It will need panel plugin/applet to work properly.
gnome-macmenu-applet 1.0.2-1, xfce4-macmenu-plugin 1.0.2-1: a lot of changes for the new menubar model.

These new packages/patches are completely incompatible with previous ones, and you must upgrade them altogether. However there isn't any user-visible change this time ;)

The new model only provides minimal support for the standalone menubar; it's less problemic but you will be better to use a panel applet for xfce or gnome (if you haven't done so yet)

Support for KDE's mac menubars will come very soon.

mangar
October 11th, 2006, 06:36 PM
AqD:
from the user's point of view, you are correct, and it will
be wonderful, in the short term.

in taking a little longer view, having a standard container will
allow for all the toolkit providers to assign their menus there,
and therefore:
1. will lower the burden of maintaining event capturer for each
menu container type,
2. will allow support of any toolkit that supports the standard.
3. will allow for different implementation of the menu -applet,
perhaps not even in an applet form (like the examples i've given
previously)
4. allow for easier porting of software to osX (since there's a
menu container, the toolkit and the application has less to worry
about).

BUT.. that my own, private opinion - you're the developer,
therefore, ultimate power is yours.. (and the world quakes in fear! :) )

mangar
October 11th, 2006, 06:38 PM
i agree, though, that as proof of content, and as a short term
solution, your implementation is the best for now.
(modifying all the toolkits shouldn't be your problem)

jannol
October 11th, 2006, 06:56 PM
Ok, finally found my issues with my builds, I had an slightly older gtkmenubar.c that I patched and it didn't include the same headers as the most current so after that I got it to build correct and even if I could used flargens deb I just wanted to get my own build going.

works perfect, now I wonder if there are any ideas of an improvement in some way for dual monitors since it is a looong way to the menubar when I am at the right most corner with my app and the menubar is at most left.

Having the menubar in the middle isn't very nice when using 2 monitors and having the menubar applet on each of 2 different panels feels like waste and it doesn't seem to work either.

Any good ideas?

agotfred
October 11th, 2006, 08:10 PM
One thing I like about the OS X menubars that concerns me a bit in a gnome/kde implimentation is that on a Mac, the menubar is global for ALL the windows created by an application. For gnome/kde, each window can have their own menubar.

Another thing is that I think the gnome/kde mac menubar simply moves the menubar widget to the top of the screen, which makes theming the menubar with a texture hard, because the mac menubar applet won't take on that texture. A better approach would be to have the applet control everything, creation of window/widgets and only have the applications communicate what options they want in the menus -- such a mac menu protocol would allow kde/gnome applications to share menubars easier too.

I can only hope freedesktop would take steps to improve this area so it would be improved for the long term, but I guess none of the core gnome/kde developers really care for this type of menu display, even though many feel that it is way better than the old emulated windows 3.11 menu approach.

But until anything happens in this area (if at all), I love and applaud the work Aqd is doing, it is really nice. I've been waiting for something like this forever!

AqD
October 12th, 2006, 06:32 AM
Latest changes:

gtk2-aqd 2.10.6-5: fix a serious bug to lose menubar when panel quits/restars. Add wm hints to make menubar working under KDE (but not working yet :-?)
gnome-macmenu-applet 1.0.3-1, xfce4-macmenu-plugin 1.0.3-1: SUPPORT KDE'S MAC MENUBAR! NOW YOU CAN USE KDE APPS HAPPILY UNDER GNOME AND XFCE :) (if the panel quits, their menubars will disappear).

AqD
October 12th, 2006, 06:39 AM
Ok, finally found my issues with my builds, I had an slightly older gtkmenubar.c that I patched and it didn't include the same headers as the most current so after that I got it to build correct and even if I could used flargens deb I just wanted to get my own build going.

works perfect, now I wonder if there are any ideas of an improvement in some way for dual monitors since it is a looong way to the menubar when I am at the right most corner with my app and the menubar is at most left.

Having the menubar in the middle isn't very nice when using 2 monitors and having the menubar applet on each of 2 different panels feels like waste and it doesn't seem to work either.

Any good ideas?

Ah, tried my latest patches and applets? It should work for multi-screens (with panel/applet per screen).

ShinjiLeery
October 12th, 2006, 09:22 AM
Hi

I downloaded the gtk 2.8.20 source, applied the path, make and make install... I reboot the system but nothing changed... What i forget to do? Tnx

Luca.

AqD
October 12th, 2006, 09:47 AM
Hi

I downloaded the gtk 2.8.20 source, applied the path, make and make install... I reboot the system but nothing changed... What i forget to do? Tnx

Luca.

- You don't need to reboot. It affects all newly-opened apps.
- Where do you install the patched gtk to? It should be in /usr/lib/
- Check /usr/lib/libgtk-x11-2.0.so.0.*, there should be only one file and make sure the modification date is correct.

BTW there are other people who provide .deb for gtk 2.8. you could just use their package.

ShinjiLeery
October 12th, 2006, 10:09 AM
- You don't need to reboot. It affects all newly-opened apps.
- Where do you install the patched gtk to? It should be in /usr/lib/
- Check /usr/lib/libgtk-x11-2.0.so.0.*, there should be only one file and make sure the modification date is correct.

BTW there are other people who provide .deb for gtk 2.8. you could just use their package.

I tried, but i have the same error that you can read in the previous post. Like HERE (http://ubuntuforums.org/showpost.php?p=1531487&postcount=53)

zammi
October 12th, 2006, 01:22 PM
I'm on Ubuntu dapper 6.06 and the patch released for GTK 2.8.x working fine. Further I use the panel applet package released for Arch (Just extract and copy the files - altered .service file etc).

They are working as charm :-)

Any chance of getting your latest patches for GTK 2.8.x ...

Thanks a lot...

ShinjiLeery
October 12th, 2006, 02:03 PM
I'm on Ubuntu dapper 6.06 and the patch released for GTK 2.8.x working fine. Further I use the panel applet package released for Arch (Just extract and copy the files - altered .service file etc).

They are working as charm :-)

Any chance of getting your latest patches for GTK 2.8.x ...

Thanks a lot...

Can ypu write how you do to get this patch work? I downloaded the gtk source, patched and install... But nothing changed

AqD
October 12th, 2006, 03:24 PM
I tried, but i have the same error that you can read in the previous post. Like HERE (http://ubuntuforums.org/showpost.php?p=1531487&postcount=53)

Hi, the error has been fixed by the latest 2.10 patch. I'll port it back for 2.8 tomorrow.

However, with new patches you'll have to use panel applets, because code for standalone menubar is almost gone (it accounts for 3/4 of all code) and now it's barely usable - just like KDE's.

flargen
October 12th, 2006, 09:09 PM
I have updated my deb and the GNOME applet package. Look here (http://ubuntuforums.org/showpost.php?p=1600937&postcount=110). AqD, the newest version works very well indeed! Thanks a lot. Also, maybe you could put a link to the post with my deb on the first post? Thanks

AqD
October 13th, 2006, 02:47 AM
I have updated my deb and the GNOME applet package. Look here (http://ubuntuforums.org/showpost.php?p=1600937&postcount=110). AqD, the newest version works very well indeed! Thanks a lot. Also, maybe you could put a link to the post with my deb on the first post? Thanks

added and the gtk 2.8 patch is done, anyone wanna package it? :)

zammi
October 13th, 2006, 04:11 AM
Can ypu write how you do to get this patch work? I downloaded the gtk source, patched and install... But nothing changed

Step 1

It's easy.
1. I downloaded the GTK source for the Dapper from packages packages.ubuntu.com. and extracted the source into a dir in /usr/src
2. Following the instruction in 1st post, applied the patch.
- cp gtkmenubar-2.8.diff gtk+-2.x.X/
- cd gtk+-2.x.X/
- patch -p0 < ./gtkmenubar-2.8.diff
- ./configure --prefix=/usr (Make sure you've installed all dependancies - dev packages etc)
- make
- sudo make install
3. For the safe side, remove the gnome panel menu from panel.

Step 2:
1. Download following arc package (If you are trying newest patch, use newest package) : http://people.os-zen.net/aqd/repository/gnome-macmenu-applet-1.0.2-1.pkg.tar.gz

2. Extract to a folder.
3. Copy gnome-macmenu-applet-1.0.3-1.pkg/opt/gnome/libexec/gnome-macmenu-applet to /usr/libexec/
4. Edit gnome-macmenu-applet-1.0.3-1.pkg\opt\gnome\lib\bonobo\servers\GNOME_MacMenuAp plet.server and change location="/opt/gnome/libexec/gnome-macmenu-applet" to location="/usr/libexec/gnome-macmenu-applet"
5. Copy the file to /usr/lib/bonobo/servers

You've done ...Login back to gnome and add MacMenuApplet to the gnome panel... :-)

AqD
October 13th, 2006, 04:20 AM
http://people.os-zen.net/aqd/repository/gnome-macmenu-applet-1.0.2-1.pkg.tar.gz

latest one is http://people.os-zen.net/aqd/repository/gnome-macmenu-applet-1.0.3-1.pkg.tar.gz

zammi
October 13th, 2006, 04:22 AM
latest one is http://people.os-zen.net/aqd/repository/gnome-macmenu-applet-1.0.3-1.pkg.tar.gz

Thanks :-)

mangar
October 13th, 2006, 02:46 PM
free QA! come an get it!

i've installed the patch (using the deb package), and the gnome applet.
here's my observations from a user point of view:
(using edgy, murrine theme)

1. the menu doesn't look like the panel, and retains the looks of
the gnome (gtk) theme)
2. the applet can't be moved after positioning it.
3. the applet shows nothing at all when the active program has no menu.
4. openoffice, firefox, doesn't support/ are not supported by the applet
( i know they don't use gtk).
5. azureus, eclipse , doesn't support/ are not supported by the applet
( i know about the java patch).
6. evolutions menu got too much space between entries.
7. no easy way to start / stop the global menu bar.
8. debian package doesn't install the menu-applet in the correct place.


please note that those are not complaints, or action items, i'd really like
this project to bear fruit, and this is a sort of preliminary help.
(i really appreciate the QA people in my workplace)

thanks for all your work, AqD!

AqD
October 13th, 2006, 02:55 PM
Packages for lunar linux, contributed by El_Angelo:

Xfce plugin: http://merlin.ugent.be/lunar/xfce4-macmenu-plugin.tar.gz
GTK: http://merlin.ugent.be/lunar/gtk+-2.tar.gz

Installation instructions:

lunar set ZLOCAL_OVERRIDES on
copy both tarballs to /var/lib/lunar/moonbase/zlocal
untar them
lin -c gtk+-2 xfce4-macmenu-plugin


Cheers!

AqD
October 13th, 2006, 03:12 PM
free QA! come an get it!

i've installed the patch (using the deb package), and the gnome applet.
here's my observations from a user point of view:
(using edgy, murrine theme)

1. the menu doesn't look like the panel, and retains the looks of
the gnome (gtk) theme)It can't be. So you have to choose a theme carefully :)


2. the applet can't be moved after positioning it.Move mouse pointer to the rightmost place on the menubar, where you will see a flat button appearing, then gnome) left click and it will show the applet menu - don't release button until you select the menu item; xfce) right click to get the menu.


3. the applet shows nothing at all when the active program has no menu.It's doable but I dunno what to show :)


4. openoffice, firefox, doesn't support/ are not supported by the applet
( i know they don't use gtk).OpenOffice takes forever to build (a night + GBs hd space) so even if I provide the patch nobody would want to build it anyway ;).

Firefox's XUL may not have the necessary functions to create the mac menubar. However, you could use epiphany on gnome.


5. azureus, eclipse , doesn't support/ are not supported by the applet
( i know about the java patch).They work fine here. Check if there is another gtk lib in ubuntu's swt/eclipse/azureus package. (they use gtk not swing)


6. evolutions menu got too much space between entries.It uses some place holders between submenus. Change view or window can correct it.


7. no easy way to start / stop the global menu bar.This tiny function would take too much code ;)


8. debian package doesn't install the menu-applet in the correct place. ask the package maintainer then ;)


please note that those are not complaints, or action items, i'd really like
this project to bear fruit, and this is a sort of preliminary help.
(i really appreciate the QA people in my workplace)

thanks for all your work, AqD!

:)

jannol
October 13th, 2006, 07:25 PM
will there be any environment options or dear I say it applet options for font color and style. It doesn't seem very hard to implement. :mrgreen:

kpolice
October 13th, 2006, 09:24 PM
I think that could be implemented through the GTK theme using some custom widget_classes or something like that.

AqD
October 13th, 2006, 09:32 PM
will there be any environment options or dear I say it applet options for font color and style. It doesn't seem very hard to implement. :mrgreen:

It's not good for an app to change the style. However, you can edit /usr/share/themes/THEME_NAME/gtk-2.0/gtkrc (usually under style "menubar"..) to set the font, colors and paddings.

flargen
October 13th, 2006, 09:54 PM
8. debian package doesn't install the menu-applet in the correct place.


The debian package doesn't install the menu-applet anywhere whatsoever! You must copy the files manually. :confused:

zammi
October 14th, 2006, 01:30 AM
Upgraded to latest patch/panel applet and found no more "Title Text" exists on the menubar. Any idea on that...

AqD
October 14th, 2006, 07:58 AM
Upgraded to latest patch/panel applet and found no more "Title Text" exists on the menubar. Any idea on that...

Yes I removed it. 3/4 of code from the patch has been removed to make it clean and more reliable under various WMs.

The standalone menubar is no longer usable and you should use panel applets instead. (and then you can add all the applets you like :))

2DC
October 14th, 2006, 09:27 AM
Wow...cool!!

Thanks

zammi
October 14th, 2006, 06:45 PM
I believe you've heard about Baghira style suite for KDE (http://baghira.sf.net/ - http://www.kde-look.org/content/show.php?content=8692). As a part of the suite, Thomas (author of Baghira) introduced a replacement menubar applet with active application name as well. Though it's a Qt/KDE based applet, I think worth to have a look because he managed to capture the names of kde/none-kde applications in it.

AqD
October 14th, 2006, 08:51 PM
I believe you've heard about Baghira style suite for KDE (http://baghira.sf.net/ - http://www.kde-look.org/content/show.php?content=8692). As a part of the suite, Thomas (author of Baghira) introduced a replacement menubar applet with active application name as well. Though it's a Qt/KDE based applet, I think worth to have a look because he managed to capture the names of kde/none-kde applications in it.

Yes it could be done. But wouldn't it be much better if we have per-application menubars instead? ;)

zammi
October 16th, 2006, 03:49 AM
Hi All...

This is to show where my desktop now :-)

http://ubuntuforums.org/gallery/showphoto.php?photo=3803&size=big&cat=2

I've mod my theme to use same pixmap for menubar as well as panel. The pixmap you choose should go well with the apps doesn't use mac style toolbar as well.

zAo
October 16th, 2006, 08:41 AM
zAo, I don't mean to sound stupid but - are you sure you actually installed the patched GTK?
Hehe, yes I did. I run Edgy by the way and did not update GTK with the updates.

AqD
October 18th, 2006, 10:57 AM
Hehe, yes I did. I run Edgy by the way and did not update GTK with the updates.

ah, do
ls /usr/lib/libgtk-x11-2.0.so.0.* to see if there are more than one files, also check the date.

richshie
October 18th, 2006, 12:14 PM
Updates to edgy seem to have broken this a little, the contents of the menubar stick to that of the first application opened.

I tried to compile gtk with the patch, but my awful typos lead to gtk and for some reason apt complaining of missing libraries, so I have no idea if that would have fixed it.

Any way this can be fixed? I really like the applet, makes me feel Im using system 7 again

edit: it's apparantly just the applet, replacing flargen's applet files with those from your repository have made things awesome again. thanks for all the work.

malwk-
October 19th, 2006, 01:35 AM
Hello
I'd like to report a bug.
Actually I'm not sure if it is a bug, it is up to the author of the patch to decide:-#

I have used the latest patch for the 2.8 series of gtk2, patched the srpm for Fedora Core 5 and rebuild the i386 rpm. Everything works fine except the F-Spot application. I am not sure why this is happenning, as the menubar is missing from the application's main window, but it does not shows in the panel applet either. I have test-run f-spot with GTK_MENUBAR_NO_MAC=1 and the menubar is back there in the main window. So what is happening with it? It is not there but is is not in the applet either.

I hope someone will resolve this.

Currently I am working on a 'suncen look Aqua like' theme. I could use some help on some strange widgets like the spinner/throbber in the nautilus browser window and so on, so if someone would like to help for this also I'd apreciate. A preview of it can be seen here->

http://static.flickr.com/120/273483860_44883e01b4_m.jpg


Full size: http://static.flickr.com/120/273483860_44883e01b4_o.png
It's not going to be easy as more and more of the Gnome core apps use modified widgets and it is hard to draw them. I have read somewhere that someoone is working on an Cairo engine to mimic the Aqua look but nothing new recently. So if someone from this forum would like to help please contact me:)

Thanks

AqD
October 20th, 2006, 09:26 AM
Hello
I'd like to report a bug.
Actually I'm not sure if it is a bug, it is up to the author of the patch to decide:-#

I have used the latest patch for the 2.8 series of gtk2, patched the srpm for Fedora Core 5 and rebuild the i386 rpm. Everything works fine except the F-Spot application. I am not sure why this is happenning, as the menubar is missing from the application's main window, but it does not shows in the panel applet either. I have test-run f-spot with GTK_MENUBAR_NO_MAC=1 and the menubar is back there in the main window. So what is happening with it? It is not there but is is not in the applet either.

Hi! The problem is f-spot's main window vanishes and then appears again after the menubar is shown (dunno why it does that), so my applets lost track on it.

It's been fixed in the latest gnome/xfce applets, version 1.0.4.

PS: great theme :)

malwk-
October 20th, 2006, 01:23 PM
Hi! The problem is f-spot's main window vanishes and then appears again after the menubar is shown (dunno why it does that), so my applets lost track on it.

It's been fixed in the latest gnome/xfce applets, version 1.0.4.

PS: great theme :)

Thanks, it works now, also with windows that have notification area applet (like gaim) - when the applet is clicked (and the main windows hidden) and it aprears again the macmenu applet catches it's menubar again. Great work. Thanks.

UPDATE: Unfortunately the new version is crashing too often (and after reloading it does not get the menubar back so I have to restart the applications). I do not know what the reason is it seems to crash randomly, still no clue. Please consider a review, when I have more info I'll write again. I use gtk-2.8.20 and gnome 2.14, maybe it will not crash under 2.10+2.16 ....

AqD
October 20th, 2006, 08:48 PM
UPDATE: Unfortunately the new version is crashing too often (and after reloading it does not get the menubar back so I have to restart the applications). I do not know what the reason is it seems to crash randomly, still no clue. Please consider a review, when I have more info I'll write again. I use gtk-2.8.20 and gnome 2.14, maybe it will not crash under 2.10+2.16 ....

It does crash when the closing windows, but only after I change gtk style :confused:

Anyway, I fixed the problem by add more checking code, version 1.0.5. It should work fine now.

(the code for xfce and gnome appplets has been merged and the filename is macmenu-applet.c; and it needs gcc -DFOR_GNOME or -DFOR_XFCE to build)

malwk-
October 21st, 2006, 05:46 PM
It does crash when the closing windows, but only after I change gtk style :confused:

Anyway, I fixed the problem by add more checking code, version 1.0.5. It should work fine now.

(the code for xfce and gnome appplets has been merged and the filename is macmenu-applet.c; and it needs gcc -DFOR_GNOME or -DFOR_XFCE to build)
Thanks, It is stable now, at least after 5-6 hours of intensive use with unstable aaplications (like democracy, it's menubar does not show in the applet until i switch the focus to another app and then go back to it, then it shows and works fine:D )

Once again BRAVO for the great job.

zammi
October 23rd, 2006, 05:18 AM
Thanks for the Mac-Style menubar, this is how my desktop looks like today: http://ubuntuforums.org/gallery/showphoto.php?photo=3854&cat=2

zammi
October 23rd, 2006, 05:57 AM
Any chance of getting some kind of "Corner Applet" (Like xfce4-corner-plugin) to the Gnome :)

malwk-
October 23rd, 2006, 06:20 AM
Thanks for the Mac-Style menubar, this is how my desktop looks like today: http://ubuntuforums.org/gallery/showphoto.php?photo=3854&cat=2

zammi, any chance to give us a link for your GTK theme? ;)
I really Like it, I am working on such theme but I faced some difficulties with particular widgets and I'd like to see how it is resolved in your theme. Thanks in advance.
Also I'm interested in the panel as well. Please share it with us:p :) :KS

zammi
October 23rd, 2006, 06:32 AM
zammi, any chance to give us a link for your GTK theme? ;)
I really Like it, I am working on such theme but I faced some difficulties with particular widgets and I'd like to see how it is resolved in your theme. Thanks in advance.
Also I'm interested in the panel as well. Please share it with us:p :) :KS

Just started to mod the cairo based gtk engine called Dyndyn, but no major differences. Hope to publish it when I manage to workout at least the buttons/scrollbars to make it an aqua like theme engine :)

The dock I'm using is called KXDocker (http://www.xiaprojects.com/www/prodotti/kxdocker/main.php).
You can get the Ubuntu packages from : http://xgl.compiz.info/pool/main/k/

AqD
October 23rd, 2006, 08:51 AM
Any chance of getting some kind of "Corner Applet" (Like xfce4-corner-plugin) to the Gnome :)

Hmmm dunno, but I have seen round corners for gnome panel before, maybe it's background picture??

kpolice
October 23rd, 2006, 09:54 PM
Can anybody tell me how to patch the Ubuntu sources and then build a deb? I got the sources using apt but I don't know how to apply it.

AqD
October 24th, 2006, 03:05 PM
Can anybody tell me how to patch the Ubuntu sources and then build a deb? I got the sources using apt but I don't know how to apply it.

It's mentioned in the original post of this thread :)

kpolice
October 24th, 2006, 06:35 PM
But I don't want to lose the Ubuntu patches and I prefer a deb package.

flargen
October 24th, 2006, 08:25 PM
kpolice, I will make a new deb if you want, my one is outdated. Should be build within 1/2 hour

flargen
October 24th, 2006, 10:58 PM
It took a little longer than I thought, but my deb is updated HERE (http://ubuntuforums.org/showpost.php?p=1600937). Thanks again AqD!

kpolice
October 25th, 2006, 12:04 AM
Thank you flargen.

AqD
October 27th, 2006, 10:02 AM
minor updates:

gtk2-aqd 2.10.6-6: fixed bug with KDE topmenu hint... but it still fails miserablily..... :confused:
xfce4-macmenu-plugin & gnome-macmenu-applet 1.0.6-1: Fix bug with KDE topmenu hint. KDE apps should work fine now.

Other: I failed to fix the bug in evolution. The weird spacing between menus is made before the menubar is put into panel and resized....

Cwiiis
October 27th, 2006, 04:08 PM
I realise there are a few debs floating around, but I don't really like how they've been done, so I've packaged it up myself (including a package for gnome-macmenubar-applet).

You can get the packages from http://chrislord.net/files/gtkmenubar/ and the package source in the 'src' subdirectory. I don't expect any, but just in case, no e-mails about this please.

Odd bug I've noticed with this, I have two panels - the lower one, usually, has a tendency to disappear sometimes. No idea why this is, but it'd be very cool if it were fixed...

flargen
October 27th, 2006, 04:34 PM
Debs updated to version 1.0.6. Here (http://ubuntuforums.org/showpost.php?p=1600937)

flargen
October 27th, 2006, 04:37 PM
CWillis, what do you not like about my debs?

vitae
October 27th, 2006, 05:54 PM
first of all, thnx aqd for coding this. i was waiting for that years :)

i am on Gentoo (www.gentoo.org), a source distribution. the patch for gtk+ was no problem for me, but i am not able to compile your applet.

well, i am not very good in developing or coding programs, but if i try to compile the applet i get following error message


gcc -std=c99 -Wall -Werror -fno-strict-aliasing -DFOR_GNOME `pkg-config --cflags --libs libwnck-1.0 libpanelapplet-2.0` $CFLAGS $LDFLAGS -o $pkgname macmenu-applet.c || return 1
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld gab 1 als Ende-Status zurück
bash: return: can only `return' from a function or sourced script

i hope it is not to rude to ask if it is possible to include a autogen.sh or configure? maybe someone could help me with my error message?

i have following packages installed


x11-libs/libwnck
Latest version available: 2.16.1
Latest version installed: 2.16.1
Size of files: 455 kB
Homepage: http://www.gnome.org/
Description: A window navigation construction kit
License: LGPL-2


and your gtkmenubar.diff from gnomefiles.org

hope that are enough infos.

thnx in advance

AqD
October 27th, 2006, 06:00 PM
Odd bug I've noticed with this, I have two panels - the lower one, usually, has a tendency to disappear sometimes. No idea why this is, but it'd be very cool if it were fixed...

gnome panel? What applets do you put in the lower one? Is the macmenu applet disappearing or the panel disappearing?

Since I don't use gnome-panel for anything but testing, I can't confirm this. Does anyone else have similar problem?

PS: the applets run in their own processes and shouldn't prevent the panel from working even if they crash - I tested this.

AqD
October 27th, 2006, 06:05 PM
well, i am not very good in developing or coding programs, but if i try to compile the applet i get following error message


gcc -std=c99 -Wall -Werror -fno-strict-aliasing -DFOR_GNOME `pkg-config --cflags --libs libwnck-1.0 libpanelapplet-2.0` $CFLAGS $LDFLAGS -o $pkgname macmenu-applet.c || return 1
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../crt1.o: In function `_start':
(.text+0x18): undefined reference to `main'
collect2: ld gab 1 als Ende-Status zurück
bash: return: can only `return' from a function or sourced script

Ah, did you set the environment variable $pkgname? Try replacing it with gnome-macmenu-applet. sorry for the confusion :p

Also, make sure you have header files for gnome-panel installed.

You don't need the gtk patch to *build* the applets. The patched gtk2 and gnome applet can be built and tested separately - they just wouldn't work correctly if you don't put the two together.

(the applet can also swallow kde's mac menubars)

vitae
October 27th, 2006, 07:35 PM
thnx for your fast support.

one of us managed to create ebuilds (the way gentoo installs packages).

here is the overlay


http://svn.gentoo-xeffects.org/xeffects/

and here are the ebuilds.


http://svn.gentoo-xeffects.org/xeffects/gnome-extra/gnome-macmenu-applet/gnome-macmenu-applet-1.0.6.ebuild

http://svn.gentoo-xeffects.org/xeffects/x11-libs/gtk+/gtk+-2.10.6.ebuild

http://svn.gentoo-xeffects.org/xeffects/x11-libs/gtk+/gtk+-2.8.20-r1.ebuild

maybe you can add that to gnomefiles.org :)

vitae
October 27th, 2006, 07:47 PM
i just want to say something, too.

i followed some time ago the discussion in gnome to add such an applet or extension. it seems they don`t want to have that.

on gnome-look.org the one, who designed MacOS-X Aqua Theme, had also created something similiar, but there are rumors that he was forced not to make his source public.

i am happy, that you did. thnx again for your work and please don`t stop it :)

p.s.: it seems that i have problems with the fast-user-switch-applet. it is not shown on the desktop anymore. i reinstalled it and gnome-panel, too. but that doesn`t help

AqD
October 27th, 2006, 09:14 PM
p.s.: it seems that i have problems with the fast-user-switch-applet. it is not shown on the desktop anymore. i reinstalled it and gnome-panel, too. but that doesn`t help

hmmm does it show up again if you remove the mac menubar applet?? (from panel and/or from file system)


PS: I added the gentoo link in the HOWTO :)

vitae
October 27th, 2006, 10:48 PM
no, it doesn`t show up after removing.

instead i have the menu bar always on the left top, where it is always in front of the gnome-panel.

someone earlier here has asked for a patch for openoffice. your answer is true, most of binary distributions don`t compile their packages, but in gentoo, we do all the time.

well, if isn`t do much work, you could think over it, again? :)

thnx

vitae

Cwiiis
October 28th, 2006, 03:47 AM
gnome panel? What applets do you put in the lower one? Is the macmenu applet disappearing or the panel disappearing?

Since I don't use gnome-panel for anything but testing, I can't confirm this. Does anyone else have similar problem?

PS: the applets run in their own processes and shouldn't prevent the panel from working even if they crash - I tested this.

Sometimes, after a bit of usage, my lower gnome panel (which contains the show desktop button, the task switcher and the trash applet) will disappear - I can bring it back using ctrl+alt+tab and it momentarily reappears if the mouse is held over the top panel (but disappears when moving the mouse away from the panel).

I'm not sure what causes this at all, I've not found a consistent set of actions that makes it happen - less frequently, the top panel disappears instead of the bottom panel too.. The problem seems to be with two panels.

Also, about the other patched gtk debs hanging around, of the two I saw, one had the same package name as the package already in the Ubuntu repository (so will always be prompted to 'upgrade' and doesn't reflect the difference between it and the official package), and the other had renamed it in an odd way - It seems to be common for a '+textdescribingaddition' to be added onto packages distributed by 3rd parties with small additions to the original package. This naming means the upgrade path won't be broken. Also, I've provided the source packages that I built the binaries with.

AqD
October 28th, 2006, 04:21 AM
no, it doesn`t show up after removing.

instead i have the menu bar always on the left top, where it is always in front of the gnome-panel.

Yes if the menubars are not caught by panel applet, they would show up there.


someone earlier here has asked for a patch for openoffice. your answer is true, most of binary distributions don`t compile their packages, but in gentoo, we do all the time.

well, if isn`t do much work, you could think over it, again? :)

maybe ;)

AqD
October 28th, 2006, 04:30 AM
Sometimes, after a bit of usage, my lower gnome panel (which contains the show desktop button, the task switcher and the trash applet) will disappear - I can bring it back using ctrl+alt+tab and it momentarily reappears if the mouse is held over the top panel (but disappears when moving the mouse away from the panel).

I'm not sure what causes this at all, I've not found a consistent set of actions that makes it happen - less frequently, the top panel disappears instead of the bottom panel too.. The problem seems to be with two panels.

well, since I can't tell you to use xfce instead, there is no other solution - just wait until gnome devs fix the bug ](*,)


Also, about the other patched gtk debs hanging around, of the two I saw, one had the same package name as the package already in the Ubuntu repository (so will always be prompted to 'upgrade' and doesn't reflect the difference between it and the official package), and the other had renamed it in an odd way - It seems to be common for a '+textdescribingaddition' to be added onto packages distributed by 3rd parties with small additions to the original package. This naming means the upgrade path won't be broken. Also, I've provided the source packages that I built the binaries with.

ah that will be fixed when the packagers read this, thanks for reporting anyway :)

AqD
October 28th, 2006, 04:34 AM
I added this to gnomefiles yesterday => http://www.gnomefiles.org/app.php/Mac_Menubar_for_GNOME_and_Xfce :rolleyes:

mangar
October 28th, 2006, 12:02 PM
Hi Aqd!
i've done a quick run over on your code (my C knowledge is quite rusty..)
if i understand correctly:
1. the gtk patch delegates the active menu to a non decorated window,
starting from the top left position.
2. the gnome/xfce applet fetch the window by its title, takes its content,
destroys the original, and than displays the menu? (i've got no prior
knowledge of gtk, so bear with me..)
3. there's some documentation missing...
4. is there an svn for you branch of gtk?

thanks in advance!

flargen
October 28th, 2006, 02:59 PM
Also, about the other patched gtk debs hanging around, of the two I saw, one had the same package name as the package already in the Ubuntu repository (so will always be prompted to 'upgrade' and doesn't reflect the difference between it and the official package), and the other had renamed it in an odd way - It seems to be common for a '+textdescribingaddition' to be added onto packages distributed by 3rd parties with small additions to the original package. This naming means the upgrade path won't be broken. Also, I've provided the source packages that I built the binaries with.

I was aware of the upgrade issue, and I have attempted to address it as I stated a few pages back. I am glad to see that you managed to make it work - would you care to share your wisdom? :p Also, it is a good idea to provide source packages. If you are prepared to update your packages, I will stop making mine.

Thanks

Edit - I don't think it would take very much to create a repository out of your web server - maybe you should look into it because it would be really cool! ;)

AqD
October 28th, 2006, 06:42 PM
Hi Aqd!
i've done a quick run over on your code (my C knowledge is quite rusty..)
if i understand correctly:
1. the gtk patch delegates the active menu to a non decorated window,
starting from the top left position.
2. the gnome/xfce applet fetch the window by its title, takes its content,
destroys the original, and than displays the menu? (i've got no prior
knowledge of gtk, so bear with me..)
3. there's some documentation missing...
4. is there an svn for you branch of gtk?

thanks in advance!

1.Yes, it's the simplest method and has been proven working well in KDE. A better method would be to make the original menubar a proxy, and selectively redirect events and actions to a real, mac-style menubar. That could solve all the problems we have now, but too complex and I don't know how to start (and gtk doesn't use MVC...)

2.Not exactly. The menubar now uses KDE's mac menubar hint for window type (together with the dock type), and the title is no longer needed.

It does not destroy the original menubar window, but swallow it into a notebook (tab) widget in the panel applet, by the XEmbed extension. If the applet/panel quits or crashes, the menubars will be restored and can be caught again next time you start the applet.

3.By documentation you mean code comments?? (There is no change in gtk API)

4.No svn. It's not really a branch, but a small and simple patch. Currently I don't see anything else I can add to the gtk patch, so it may just stop here (unless people have some other ideas) :)

ryanpg
October 28th, 2006, 08:49 PM
Hi, great work thanks! :D I'd like to suggest that if no application is currently open, a nautilus menu be presented. IIRC this is what happens on OSX. Also I'm attaching a screenshot that demonstrates a little applet that adds window controls to the panel for the focused window. It's a great compliment to mac-style menus. I'm sure the author (not me) could be persuaded to release it if there's enough interest.

Thanks again!

-ry

Cwiiis
October 29th, 2006, 03:50 AM
I was aware of the upgrade issue, and I have attempted to address it as I stated a few pages back. I am glad to see that you managed to make it work - would you care to share your wisdom? :p Also, it is a good idea to provide source packages. If you are prepared to update your packages, I will stop making mine.

Thanks

Edit - I don't think it would take very much to create a repository out of your web server - maybe you should look into it because it would be really cool! ;)
You can find the source for my packages in the 'src' subdirectory in the link I gave, so feel free to integrate anything I've done differently :) I don't mind keeping the packages updated, seeing as I'll be using them myself... I don't think I could setup a repository there though, that's my work's server, not sure my boss would be too happy about that ;) If anyone has one setup or wants to set one up though, I don't mind uploading packages to it.

AqD - Do you have any idea what might be causing the gnome-panel weirdness? Is the applet doing something odd with the panel's window maybe? If I figure out any set of actions that can replicate the problem for sure I'll be sure to post.

mangar
October 29th, 2006, 10:19 AM
AqD:
if by MVC you mean microsoft Visual studio, i've found the
following a nice replacement:
eclipse ,
CDT plugin (for c/c++ support), http://www.eclipse.org/cdt/
creole (graphical visualization of dependecies and calls)
http://www.thechiselgroup.org/creole

subclipse (for svn access): http://subclipse.tigris.org/

control+shift+g is great..

caveat: needs tons of memory.(about 300mb).

AqD
October 29th, 2006, 01:42 PM
AqD:
if by MVC you mean microsoft Visual studio, i've found the
following a nice replacement:
eclipse ,
CDT plugin (for c/c++ support), http://www.eclipse.org/cdt/
creole (graphical visualization of dependecies and calls)
http://www.thechiselgroup.org/creole

subclipse (for svn access): http://subclipse.tigris.org/

control+shift+g is great..

caveat: needs tons of memory.(about 300mb).

No No :D

MVC means model-view-controller, a *good* style/pattern used by several GUI and web toolkits, including gnustep, cocoa, and java swing.

(I have been using eclipse for some time, but not for hacking)

Paulus
October 29th, 2006, 02:00 PM
Hey, thanks for this cool feature.. really enjoying it.

It would be nice if when the desktop is focused a standard nautilus menu bar would show up. also, I see this doesn't seem to work with firefox.. I assume i'm not alone.

but, more importantly this seems to be causing the latest beryl (svn) to hard lock, is anyone else having this problem?





Thanks for the hard work though :)

AqD
October 29th, 2006, 02:25 PM
AqD - Do you have any idea what might be causing the gnome-panel weirdness? Is the applet doing something odd with the panel's window maybe? If I figure out any set of actions that can replicate the problem for sure I'll be sure to post.

hmmm, but the applet has no access to the panel's window - it's an GtkPlug swallowed into panel's GtkSocket, not a real widget inside the panel.

PS: I found another problem that causes my applet to crash - fixing..

mangar
October 29th, 2006, 02:31 PM
1. shame on me.. :)
re-read : http://en.wikipedia.org/wiki/Model-view-controller

2. i've registered to the gnome.org bugzilla, and will add a request for move to a more flexible design.
(i think it will be problematic - gtk is written in c, which is
less abstract than the competition)

3. i'll add a feature request for a global menu bar, on the basis
of portability to osX.

4. can you add a link to the first post, so that other people could
vote for your bug report/patch submit? (or at least raise consciousness).

5. i probably need to do it myself, but can't commit to it - catching a developer on IRC could move this along a little bit more.

thanks for all your work, AqD!

mangar
October 29th, 2006, 02:41 PM
http://bugzilla.gnome.org/show_bug.cgi?id=366860

stokedfish
October 30th, 2006, 01:01 AM
Merge, merge, merge! :D

AqD
October 30th, 2006, 09:16 AM
I have added the application label to gnome/xfce applets, and now I'm wondering what to add for the desktop menubar?

I can think only 3 so far:
Shortcut/Place list (same as the sidepane in file chooser). It'd require a lot of code for file monitoring and making emblems for icons, because there is no standard API.
List of shortcuts for home folder, ~/Desktop, and root. I have made this one for xfce but gnome users may not want it.
A simple menubar: it can't manage the desktop, so there would only be simple commands such as open file manager window and help->about etc.

(there could be 2 or 3 of them, switching by double-click on the application title label)

Any other ideas?

Cwiiis
October 30th, 2006, 10:31 AM
I think the nicest thing, from a gnome perspective, would be to patch Nautilus and add a gconf-configurable option for the desktop to have a menu-bar - Given that all Nautilus did until recently was hide the menu-bar for the desktop, I'm guessing this shouldn't be too difficult?

zniavre
October 30th, 2006, 12:36 PM
bonjour

what a good idea to create this menu bar i like it
the update -manager want to remove your deb by the edgy one, how to force your version please?

excuse for my english
thank you
see you later

AqD
October 30th, 2006, 03:13 PM
bonjour

what a good idea to create this menu bar i like it
the update -manager want to remove your deb by the edgy one, how to force your version please?

excuse for my english
thank you
see you later

I dunno, the ubuntu package is not made by myself. On arch linux I use another package name "gtk2-aqd" (which provides "gtk2") to avoid the problem.

flargen
October 30th, 2006, 10:33 PM
zniavre, if you are referring to my package, try Cwiiis' - that one doesn't have the same issue. Here (http://ubuntuforums.org/showpost.php?p=1671888&postcount=169) is the post with it on.

AqD
October 31st, 2006, 05:00 AM
Hey, thanks for this cool feature.. really enjoying it.

It would be nice if when the desktop is focused a standard nautilus menu bar would show up. also, I see this doesn't seem to work with firefox.. I assume i'm not alone.

but, more importantly this seems to be causing the latest beryl (svn) to hard lock, is anyone else having this problem?

nautilus menubar - probably not possible, I'm still wondering what else to put for the desktop (maybe nautilus shortcuts?)

firefox - it's not gtk app, it would need other patches. But since i use epiphany (modified :P) exclusively...... ;)

beryl - dunno, it worked last time I tried. Maybe it triggered a driver bug?

AqD
October 31st, 2006, 05:04 AM
A small 1.0.9 release for gnome-macmenu-applet and xfce4-macmenu-plugin:

http://static.flickr.com/117/284304699_60d79c3555_m.jpg (http://static.flickr.com/117/284304699_60d79c3555_o.png)

- Add window title label, and "GNOME"/"Xfce" when the desktop is focued. The label is fetched from its class name, rather than the usual icon name apps set, because some gnome apps have very weird icon names such as "Web browser" and "Evince Document Viewer...."

- GNOME users can now right-click on the label to move/remove menubar applet.

- previously-added shortcut list has been removed temporarily.

AqD
October 31st, 2006, 05:41 AM
- I removed the swing hack part from post, since it's not ready for real apps.

- zammi's cool screenshots are added to the first post. If you guys would like to have yours on it, please let me know :) (I can put only 8 at most)

felipe
October 31st, 2006, 08:04 PM
A small 1.0.9 release for gnome-macmenu-applet and xfce4-macmenu-plugin:

http://static.flickr.com/117/284304699_60d79c3555_m.jpg (http://static.flickr.com/117/284304699_60d79c3555_o.png)

- Add window title label, and "GNOME"/"Xfce" when the desktop is focued. The label is fetched from its class name, rather than the usual icon name apps set, because some gnome apps have very weird icon names such as "Web browser" and "Evince Document Viewer...."

- GNOME users can now right-click on the label to move/remove menubar applet.

- previously-added shortcut list has been removed temporarily.

BIG EDIT: small compiling how-to for the menubar

Get the files from here:
http://aur.archlinux.org/packages.php?do_Details=1&ID=7070&O=0&L=0&C=0&K=mac&SB=&SO=&PP=25&do_MyPackages=0&do_Orphans=0&SeB=nd

Compile the applet:
gcc -std=c99 -Wall -Werror -fno-strict-aliasing -DFOR_GNOME `pkg-config --cflags --libs libwnck-1.0 libpanelapplet-2.0` $CFLAGS $LDFLAGS -o macmenu-applet macmenu-applet.c

Open GNOME_MacMenuApplet.server with Gedit and change the 3rd line into this:

location="/usr/lib/gnome-applets/macmenu-applet">

install as usual:
sudo mv GNOME_MacMenuApplet.server /usr/lib/bonobo/servers/
sudo mv macmenu-applet /usr/lib/gnome-applets/

:-)

ryanpg
November 1st, 2006, 04:18 AM
Oh my goodnes. The way the window title works is horrible. :-? Really unfortunate, I was enthused up to this point. IMHO having the menu jump all over the panel depending on the name of the app is an aesthetic and usability nightmare. Could we have an option somehow?

AqD
November 1st, 2006, 06:22 AM
Oh my goodnes. The way the window title works is horrible. :-? Really unfortunate, I was enthused up to this point. IMHO having the menu jump all over the panel depending on the name of the app is an aesthetic and usability nightmare. Could we have an option somehow?

Well it's how baghira works and I have no problem with that :)

1.0.10 release for gnome/xfce applet:
- add checkbox in applet popup to toggle the title label. (off by default on gnome)

PS: gcc arguments for gnome applet has been changed, now you need `pkg-config --cflags --libs gconf-2.0 libwnck-1.0 libpanelapplet-2.0` (add "gconf-2.0")

u-foka
November 1st, 2006, 09:01 PM
Hy!

I'm installed the lastest version of this package, and gtk goes crazy. I can't unminimize my windows :S

Any solutions? I like this style, but i uninstalled it now :S

PS: Sorry for my bad english

AqD
November 1st, 2006, 09:24 PM
Hy!

I'm installed the lastest version of this package, and gtk goes crazy. I can't unminimize my windows :S

Any solutions? I like this style, but i uninstalled it now :S

PS: Sorry for my bad english

hmmm, it should have nothing to do with either of the applet or the patch. What packages did you install? And what happened when you unminimize windows? Do you get any app error from console or log? Also, make sure your libwnck version is at least 2.16.

ryanpg
November 2nd, 2006, 05:33 PM
Well it's how baghira works and I have no problem with that :)

1.0.10 release for gnome/xfce applet:
- add checkbox in applet popup to toggle the title label. (off by default on gnome)


Thank you for being so responsive! I'm happy again. I'm curious though, why is it difficult to have a nautilus menu when no app has focus? I'm wonder, because that panel applet I mentioned earlier (and use) seems to be able to access and display the nautilus window controls just fin. Thanks again. :D

AqD
November 2nd, 2006, 06:21 PM
Thank you for being so responsive! I'm happy again. I'm curious though, why is it difficult to have a nautilus menu when no app has focus? I'm wonder, because that panel applet I mentioned earlier (and use) seems to be able to access and display the nautilus window controls just fin. Thanks again. :D

Yes but there has to be a menubar to *steal* when no window is open. And nautilus doesn't and cannot provide such a menubar (in gtk/gnome a menubar must belong to one window, not bound to application). The applet can't just create a new menubar from nothing by itself :)

It could probably be done by adding a menubar to nautilus-managed desktop, but this would mean a lot of patches, and I certainly won't have time for this before I leave (next week... :()

ryanpg
November 3rd, 2006, 12:19 AM
Yes but there has to be a menubar to *steal* when no window is open. And nautilus doesn't and cannot provide such a menubar (in gtk/gnome a menubar must belong to one window, not bound to application). The applet can't just create a new menubar from nothing by itself :)

It could probably be done by adding a menubar to nautilus-managed desktop, but this would mean a lot of patches, and I certainly won't have time for this before I leave (next week... :()

Yeah this makes sense. I guess window decorations/controls are completely different than a menubar. Oh well, thanks again for all the patching. :D

mots
November 3rd, 2006, 03:26 PM
Is it possible to have the panel-widget always showing something (even while no window is focused)? Kinda sux to have half the panel empty....

AqD
November 3rd, 2006, 06:00 PM
Is it possible to have the panel-widget always showing something (even while no window is focused)? Kinda sux to have half the panel empty....

Yes, but what would that be??

mots
November 3rd, 2006, 06:45 PM
I'd be happy with the gnome-menubar's entries (e.g. Programs - Places - System) or sth like that...

kiddo
November 3rd, 2006, 07:05 PM
Okay, I have not tried this patch myself, but I'm watching the thread nonetheless, from afar. One thing that came to my mind today, however, is how will this handle applications with multiple menu bars? Like, nested evince inside a browser (just install mozplugger and evince embeds itself automatically in epiphany for example).

Look at the attached screenshot for something more concrete.

AqD
November 3rd, 2006, 07:55 PM
I'd be happy with the gnome-menubar's entries (e.g. Programs - Places - System) or sth like that...

Until you begin to use it ;)

There are two things to consider: It's better not to duplicate something that's already done, such as a main menu (unless you want to have *two* menus on panel).
It should be, basically, useless - just decorations. Because to use the function you have to focus on desktop first, which some people may find inconvenient and odd, and WMs such as xfwm don't let you do that when there is still a window open.
I think places would be fine, or browser bookmarks, anyone have other ideas??

AqD
November 3rd, 2006, 07:57 PM
Okay, I have not tried this patch myself, but I'm watching the thread nonetheless, from afar. One thing that came to my mind today, however, is how will this handle applications with multiple menu bars? Like, nested evince inside a browser (just install mozplugger and evince embeds itself automatically in epiphany for example).

Look at the attached screenshot for something more concrete.
It'd screw up, badly ;)

mots
November 3rd, 2006, 08:17 PM
What does Apple put in there (OSX)? And: is it possible to show the apps name next to the menu? (Should be optional, i guess...)

AqD
November 3rd, 2006, 09:15 PM
What does Apple put in there (OSX)?
Just like KDE's, a menubar to manage "Desktop". But nautilus doesn't have such a menubar.


And: is it possible to show the apps name next to the menu? (Should be optional, i guess...)
It's already done in the latest version (1.0.10). Turn it on by popup menu in the rightmost flat button.

kiddo
November 4th, 2006, 01:07 AM
It'd screw up, badly ;)

You have to predict this scenario :) please add some exception (so that it displays the parent window's menu for example) if there is more than one menu. Or at least, just make sure that it does not make everything crash! :mrgreen:

mots
November 4th, 2006, 11:02 AM
Just found out that the title-function looks crappy with banshee (and i guess with all mono-apps) (it says "/usr/lib/banshee/banshee.exe)
Is there any way to improve that?
EDIT: How about some kind of alias-list?
e.g.: "Firefox bin"-"Firefox"
"/usr/lib/banshee/banshee.exe" - "Banshee"

shouldn't be too hard to implement and would make things waaayy easier...

In case anyone wants it, i uploaded a binary version of the applet here: http://irc.linuxlovers.at/users/~mots/Gtk-Menubar-Patch/MacMenuApplet.tar.gz
Simply unpack it and then do:

sudo mv GNOME_MacMenuApplet.server /usr/lib/bonobo/servers/
sudo mv macmenu-applet /usr/lib/gnome-applets/

maybe ill do a *.deb later...

mangar
November 4th, 2006, 02:02 PM
alias list is a problematic idea..
it will force the maintainer (AqD) to make lots of checks to the
title.

a workaround that might be a tiny bit better (but still a hack), will
be (imho, of course..) to check for a .exe string in the last for
character of a title, if if so, truncate the exe and the path strings.

mots
November 4th, 2006, 03:50 PM
As promised, here's the ubuntu package for the panel-applet...
http://irc.linuxlovers.at/users/~mots/Gtk-Menubar-Patch/gnome-macmenu-applet_1.10-1_i386.deb

AqD
November 4th, 2006, 05:27 PM
You have to predict this scenario :) please add some exception (so that it displays the parent window's menu for example) if there is more than one menu. Or at least, just make sure that it does not make everything crash! :mrgreen:

I just released a new gtk patch (gtk2-aqd 2.10.6-7) which detects mozplugger and disables mac menubar for embedded apps:

http://static.flickr.com/112/288550575_46221121a4_m.jpg (http://flickr.com/photos/aqd/288550575/)

PS: I'll no longer maintain 2.8 patch since Edgy has been released.

iotc247
November 4th, 2006, 05:34 PM
When not using your theme, it seems that the background of the applet does not match the background of the panel. And that the text appears on the panel styled background, not the applet background. Also the little bubble for configuring the applet should be on the left as is for other applets (when moving for example).

I'd also like to know why it would be hard to make the default function when no window is on the Gnome Menu Bar applet. That would make sense to be the default for the desktop.

And lastly, is there ever going to be firefox support in terms of moving the file menu..

AqD
November 4th, 2006, 05:34 PM
alias list is a problematic idea..
it will force the maintainer (AqD) to make lots of checks to the
title.

a workaround that might be a tiny bit better (but still a hack), will
be (imho, of course..) to check for a .exe string in the last for
character of a title, if if so, truncate the exe and the path strings.

F-Spot and MonoDevelop don't have the problem. But since the applet is not using the *standard* method, this could happen for a few apps.

The standard method also has some serious problems, mainly with GNOME programs: Epiphany reports it as "Web Browser" (WTF?!), and Evince reports "Evince Document Viewer" (too long), and MonoDoc reports "Mono Documentation Library" .....

I'll try to mix several methods together to get best results.

mots
November 4th, 2006, 06:21 PM
Is there any chance of getting this working for Mozilla-based apps (Firefox, Thunderbird, Songbird)?

AqD
November 4th, 2006, 06:22 PM
When not using your theme, it seems that the background of the applet does not match the background of the panel. And that the text appears on the panel styled background, not the applet background.
It's a problem for some themes. I cannot change that from my patch or the applets.


Also the little bubble for configuring the applet should be on the left as is for other applets (when moving for example).
It'd add some fixed space to the left side and look imperfect.

Other applets don't need such a bubble - the popup menus just work on them directly. But embedded menubar makes this impossible. However, if you turn on the label, you could also use popup on it.


I'd also like to know why it would be hard to make the default function when no window is on the Gnome Menu Bar applet. That would make sense to be the default for the desktop.
I have explained this in other replies: nautilus doesn't provide such a menubar for my applet to swallow into the panel. And I won't have time to make patch on nautilus - I'll be leaving to the army (conscript) just next week :(


And lastly, is there ever going to be firefox support in terms of moving the file menu..
No. I'm using my epiphany-aqd (http://aur.archlinux.org/packages.php?do_Details=1&ID=2156) happily and had no intention to do this. And now it's too late...

PS: my epiphany-aqd is gnome's epiphany with some patches: has "quit" menu item, always save session on quit or close of the last window, open tab next to the current one, and all popups/links that used to be opened in new window are now opened in new tabs. It should be normal enough as a tabbed browser ;)

AqD
November 4th, 2006, 09:03 PM
alias list is a problematic idea..
it will force the maintainer (AqD) to make lots of checks to the
title.

a workaround that might be a tiny bit better (but still a hack), will
be (imho, of course..) to check for a .exe string in the last for
character of a title, if if so, truncate the exe and the path strings.

I just made a new applet release 1.0.11:
Better title label name handling, chars are limited to 15 (depending on font/text width). Plus special config for mono, gnome control center's property windows, and a few other apps.
Title label is on by default now
Cheers!

mots
November 4th, 2006, 09:37 PM
Just uploaded a deb of the 1.11 release.
Get it here (http://irc.linuxlovers.at/users/~mots/Gtk-Menubar-Patch/)

mots
November 4th, 2006, 09:43 PM
Just uploaded a deb of the 1.11 release.
Get it here (http://irc.linuxlovers.at/users/~mots/Gtk-Menubar-Patch/)

AqD: could you release a patched tarball of your latest gtk-version?
Maybe i'll set up an ubuntu repo for this...

AqD
November 5th, 2006, 01:25 AM
AqD: could you release a patched tarball of your latest gtk-version?
Maybe i'll set up an ubuntu repo for this...

yes it's here http://aquila.deus.googlepages.com/archlinuxpackages, gtk2-aqd-2.10.....tar.gz. It's built for i686. To install, just copy all files (skip .PKGINFO, .FILELIST, and .INSTALL)

kiddo
November 5th, 2006, 04:26 AM
I have just tried the applet & patch, it is impressive. I would like to suggest one minor visual enhancement however: add a spacing of 1 character to the "window title". The reason is that if you use themes (like clearlooks) that have a menu bar background, you will see that it stops precisely near the "app name" label. I think it would look more balanced if you added the spacing of 1 letter so that this "cut off" cuts right in the middle between the two words instead of right next to the last letter of the first word.

Bonus bug reports:
* there is a 1 pixel spacing between the applet and the top of the screen if the panel is the top one: as I saw the gnome menu bar having it fixed, it is most likely possible to make your applet with 0 spacing from the top, which would be excellent for usability (I tend to "bump" my mouse cursor to the edge of my screen)
* alt+some_letter does not work. For example, with a normal gtk, if I do ALT+F in nautilus, it will open the "File" menu. With this patch, it does not work.

Your work is truly awesome.

kpolice
November 5th, 2006, 06:19 AM
An you can edit your theme to make it appear just like your panel, so no need to add that spacing you want. Just look at my screenshot http://www.deviantart.com/deviation/42460007/ .

Your bug about 1 pixel spacing between the applet and the top of the screen is because the theme you use and the ythickness for the panel and/or menubar items.

mangar
November 5th, 2006, 06:22 AM
lots of luck with your military service!
i hope it will be interesting, but not too interesting..
do you know where you will serve?

Cimi86
November 5th, 2006, 09:53 PM
http://img277.imageshack.us/img277/1579/schermata1pr4.th.png (http://img277.imageshack.us/img277/1579/schermata1pr4.png)

Showing murrine next version (0.31?) with --enable-macmenubar at the configure, hope you like it

kiddo
November 5th, 2006, 11:07 PM
An you can edit your theme to make it appear just like your panel, so no need to add that spacing you want. Just look at my screenshot http://www.deviantart.com/deviation/42460007/ .

Your bug about 1 pixel spacing between the applet and the top of the screen is because the theme you use and the ythickness for the panel and/or menubar items.

I don't think themes can be edited *only* for the panel menus (instead of all menus).. can they?

Also, the 1pixel bug must be on the software side, not theme, because the gnome-menu-bar works fine, but this applet, right besides it, has that 1 pixel bug... no?

Cwiiis
November 6th, 2006, 12:56 AM
I've updated the debs (and source debs) on my webspace, that URL again: http://chrislord.net/files/gtkmenubar/

AqD - Maybe worth mentioning this URL on the main post for edgy debs? Given there aren't any other debs floating around of the gnome applet and it seems I'm keeping them pretty up-to-date :)

kiddo
November 6th, 2006, 02:45 AM
Just to add that you have my gratitude for your packaging work, Cwiiis :)

chrisoverzero
November 6th, 2006, 03:32 AM
Thanks for the .debs, too, Cwiiis.

One thing, though. Mono apps report their names correctly, as do all others I tested, but the desktop is now named "GNO..." rather than "GNOME" as it did previously. Did I do something wrong?

Edit: OK, I remember now that there's a 15 character restriction on the application name. 1.) Can that be configurable? 2.) Isn't "GNOME" shorter than 15 characters?

vitae
November 6th, 2006, 01:20 PM
http://img277.imageshack.us/img277/1579/schermata1pr4.th.png (http://img277.imageshack.us/img277/1579/schermata1pr4.png)

Showing murrine next version (0.31?) with --enable-macmenubar at the configure, hope you like it

thats amazing. my favourite engine with that mac patch. :D

can`t wait till it is released

AqD
November 6th, 2006, 04:29 PM
Thanks for the .debs, too, Cwiiis.

One thing, though. Mono apps report their names correctly, as do all others I tested, but the desktop is now named "GNO..." rather than "GNOME" as it did previously. Did I do something wrong?

Edit: OK, I remember now that there's a 15 character restriction on the application name. 1.) Can that be configurable? 2.) Isn't "GNOME" shorter than 15 characters?

1) you can change it in the source, see the MAX_LABEL... = 15

2) The max width is not real number of chars, but 15 * normal font width (depending on the font/size you choose). However it should not happen unless your UI font is very weird or something is screwed up.. PS: "GNOME" is displayed perfectly here, with font Bitstream Vera Sans, 10pt, 96dpi.

good bye everyone, last post... ](*,)

AqD
November 6th, 2006, 05:01 PM
I can't disown my app in gnomefiles. So here is the password for anyone who wish to continue the development and update the page:

Login: AqD
Password: public

mots
November 6th, 2006, 05:39 PM
Does that mean you stop developing your great "hax"?

If not,
is it possible to get that working for OOo?

agotfred
November 6th, 2006, 09:03 PM
Hm, any reason for Aqd leaving?

mangar
November 6th, 2006, 09:32 PM
post #227

I have explained this in other replies: nautilus doesn't provide such a menubar for my applet to swallow into the panel. And I won't have time to make patch on nautilus - I'll be leaving to the army (conscript) just next week


Good luck and goodbye, AqD!

vitae
November 7th, 2006, 07:50 AM
good bye, i hope it won`t be a to hard time in the army for you.

malwk-
November 7th, 2006, 11:15 AM
http://img277.imageshack.us/img277/1579/schermata1pr4.th.png (http://img277.imageshack.us/img277/1579/schermata1pr4.png)

Showing murrine next version (0.31?) with --enable-macmenubar at the configure, hope you like it

Great. I am a fan of your engine and I have been using it for a while. As well as my colegues - it probably the best out there right now cairo based engine.

One question, what is the theme used for the screenshot and can it be downloaded somewhere? I like the blue/silver look a lot.
Thanks

zniavre
November 7th, 2006, 03:14 PM
excuse me, is there any french who can make a french tutorial
cause this news mac menu i do not knows wich .deb hav to be installed in my system.
i can read english but not technical one as here

-i just downloading this one >gnome-macmenu-applet_1.10-1_i386.deb<
can i install it?

-the update-manager always want to change the libgtk2.0-0 version 2.10.6-oubuntu1 i do not knows how to "force" the patched libgtk2


thx for reponses see you soon

ShinjiLeery
November 7th, 2006, 06:26 PM
excuse me, is there any french who can make a french tutorial
cause this news mac menu i do not knows wich .deb hav to be installed in my system.
i can read english but not technical one as here

-i just downloading this one >gnome-macmenu-applet_1.10-1_i386.deb<
can i install it?

-the update-manager always want to change the libgtk2.0-0 version 2.10.6-oubuntu1 i do not knows how to "force" the patched libgtk2


thx for reponses see you soon

I agree... A mini tutorial (English ;) ) in the first post would be nice

kpolice
November 7th, 2006, 09:03 PM
Just install the following files (edgy):
http://chrislord.net/files/gtkmenubar/libgtk2.0-0_2.10.6-0ubuntu1+macmenubar1.0.11_i386.deb
http://chrislord.net/files/gtkmenubar/gnome-macmenu-applet_1.0.11-1_i386.deb

It's enough and then add the macmenu applet to you panel but first remove the menu bar applet from your panel if you have it (the one with three menu applications, system, preferences).