You are not logged in.

#26 2006-08-23 14:50:05

Simastrick
Member
Registered: 2006-08-17
Posts: 49

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

In fact I would say positioning at Y=-1 would cause perfection, in the context of the usability concerns discussed previously.

Offline

#27 2006-08-23 15:43:50

aquila_deus
Member
From: Taipei
Registered: 2005-07-02
Posts: 348
Website

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

Sigi wrote:

Can't one make a theme that respects this behaviour? Just a thought, I really appreciate the work you did!

You can. Edit /usr/share/themes/YOUR_THEME/gtk-2.0/gtkrc, find

style "menubar" {
......
ythickness = X
......
}

(where X = 1, 2, 3, ...)

Just change ythickness to 0

Offline

#28 2006-08-24 13:09:27

Kris
Member
From: Denmark
Registered: 2006-07-11
Posts: 86
Website

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

aquila_deus wrote:
Kris wrote:

Nice work!
Can i find something like this to Xfce?

Damn, it's so freakin' nice!

Hi! Every gtk applications (including xfce's) are changed to use mac-style menubar with my patch. It's not part of the desktop (unlike real mac).

Nice, but does it work with the Xfce-panel? or is it a Gnome-panel patch?


// Kris

"Penquins, Penquins, über alles!"

Offline

#29 2006-08-24 16:52:41

aquila_deus
Member
From: Taipei
Registered: 2005-07-02
Posts: 348
Website

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

Kris wrote:

Nice, but does it work with the Xfce-panel? or is it a Gnome-panel patch?

No, it has nothing to do with panel. The menubar is put by gtk applications themselves.

Offline

#30 2006-08-24 17:00:14

Kris
Member
From: Denmark
Registered: 2006-07-11
Posts: 86
Website

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

aquila_deus @
Cool - i'll try it now big_smile


// Kris

"Penquins, Penquins, über alles!"

Offline

#31 2006-08-26 17:43:43

aquila_deus
Member
From: Taipei
Registered: 2005-07-02
Posts: 348
Website

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

1.Add a gradient title label at the right side:

225336386_05f248fedc_m.jpg
Configure it by:

export GTK_MENUBAR_TITLE_WIDTH=200
export GTK_MENUBAR_TITLE_FONT="Times New Roman"

(default width is 0 and font is "Times")

2.Add support for docking, need compositor, turn on by this environment variable:

export GTK_MENUBAR_KEEP_DOCKING=1

(default 0)

3.Add an option to disable mac-style menubar:

export GTK_MENUBAR_NO_MAC=1

(default 0)

Offline

#32 2006-08-26 21:21:42

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

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

Have you talked to the GTK guys about including this into GTK proper?

Dusty

Offline

#33 2006-08-27 03:47:41

aquila_deus
Member
From: Taipei
Registered: 2005-07-02
Posts: 348
Website

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

Dusty wrote:

Have you talked to the GTK guys about including this into GTK proper?

Dusty

No, because
· The current method ("re-parent" the menubar) is not an universal solution for all gtk+ applications, but there is no suitable higher-level place to implement this like KDE's kdeui.
· A few apps do screw up or display badly: acrobat reader 7, bluefish, and xara xtreme

Offline

#34 2006-08-27 04:04:45

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

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

Hey, its open source. If you post it to the gtk mailing list, someone might have a solution for those problems. smile You've done something pretty cool here, sure its just a start and to make it work properly may require hacking the whole friggin toolkit, but that's what "many eyes" are for.

Dusty

Offline

#35 2006-08-27 09:07:20

aquila_deus
Member
From: Taipei
Registered: 2005-07-02
Posts: 348
Website

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

Offline

#36 2006-09-01 05:55:20

isez2001
Member
Registered: 2006-08-24
Posts: 33

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

I pulled the package from Aquila's repo, and Pacman automatically removed gtk2 in order to install the new package(gtk2-aqd).

Now, as much as I would like to use mac-style menus, practicality forces me to restore regular gtk2,  But... I can't.

Despite all my various attempts, Pacman has firmly refused to remove gtk2-aqd on the basis that there are a number of packages depending on it.  I can't do either pacman -R gtk2-aqd or pacman -S gtk2, and a quick scan of the pacman manpage didn't give any help.

What must I do to force/allow removal of this package?

(and... on a side note... does anybody know why I can't get gaim to sync out of the AqD repo?)


EDIT:   pacman -Rd gtk2-aqd did the trick.  I'll still take comments on gaim... but it's off-topic, so feel free to ignore it anyway.

Offline

#37 2006-09-05 04:03:07

aquila_deus
Member
From: Taipei
Registered: 2005-07-02
Posts: 348
Website

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

isez2001 wrote:

I pulled the package from Aquila's repo, and Pacman automatically removed gtk2 in order to install the new package(gtk2-aqd).

Now, as much as I would like to use mac-style menus, practicality forces me to restore regular gtk2,  But... I can't.

Despite all my various attempts, Pacman has firmly refused to remove gtk2-aqd on the basis that there are a number of packages depending on it.  I can't do either pacman -R gtk2-aqd or pacman -S gtk2, and a quick scan of the pacman manpage didn't give any help.

What must I do to force/allow removal of this package?

(and... on a side note... does anybody know why I can't get gaim to sync out of the AqD repo?)


EDIT:   pacman -Rd gtk2-aqd did the trick.  I'll still take comments on gaim... but it's off-topic, so feel free to ignore it anyway.

pacman bug big_smile

Offline

#38 2006-09-14 14:22:32

aquila_deus
Member
From: Taipei
Registered: 2005-07-02
Posts: 348
Website

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

The title label is updated!
246291630_f3be334e28_m.jpg
The label is off by default. You have to turn on it by:

export GTK_MENUBAR_TITLE_WIDTH="200"

200 is the width of title label, 0 to disable. The colors are taken from your current gtk/gnome theme.

And the java menubar patch is updated, too. Now it's set to dock type and handle transparency correctly. Environment varables: · JAVA_MENUBAR_ACTIVE_OPACITY - opacity of menubar when mouse hovers it. (float number, from 0.0 to 1.0) · JAVA_MENUBAR_INACTIVE_OPACITY - opacity of menubar when it's not hovered by mouse.
BTW, anyone who know how to use ARGB in gtk widgets (not plain GtkWindow + expose) please help me... I'm stuck with it....

Offline

Board footer

Powered by FluxBB