Opened 10 years ago

Last modified 8 years ago

#28911 new request

GTK integration in OSX

Reported by: james.r.haigh@… Owned by: macports-tickets@…
Priority: Not set Milestone:
Component: ports Version:
Keywords: Cc: rudloff@…, cooljeanius (Eric Gallager)
Port:

Description (last modified by ryandesign (Ryan Schmidt))

With regards to a GTK native look and feel, I aimed to solve these problems:

  • integrate menus with OSX's menu bar
  • native looking widgets
  • change ctrl-alpha bindings to cmd-alpha

Current solution: gtk2 +no_x11 +quartz with a theme such as gtk-osx-tiger.

Problems:

  • apps start behind the currently focused window
  • some ports require +x11 (such as some of yelp's dependencies)
  • each binding has to be manually added

The solution I have currently is adequate for now, but I would like to work on a more long-term solution based on GlobalMenu:
http://code.google.com/p/gnome2-globalmenu/issues/detail?id=136&q=mac

X11 apps start in the foreground. I notice that with gtk2 +x11, X11.app responds to cmd-Q even when the gtk app is focused. So some combination of X11 and GlobalMenu could make the best solution. X11.app's menus could be replaced with GlobalMenu, it could capture cmd-alpha and send ctrl-alpha to the gtk app. X11.app's dock icon could be hidden.

What do you think?

James.

Change History (6)

comment:1 Changed 10 years ago by ryandesign (Ryan Schmidt)

Description: modified (diff)

comment:2 Changed 9 years ago by rudloff@…

Cc: rudloff@… added

Cc Me!

comment:3 in reply to:  description Changed 9 years ago by dave@…

Replying to james.r.haigh@…:

With regards to a GTK native look and feel, I aimed to solve these problems:

  • integrate menus with OSX's menu bar
  • native looking widgets
  • change ctrl-alpha bindings to cmd-alpha

Current solution: gtk2 +no_x11 +quartz with a theme such as gtk-osx-tiger.

Problems:

  • apps start behind the currently focused window
  • some ports require +x11 (such as some of yelp's dependencies)
  • each binding has to be manually added

The solution I have currently is adequate for now…

james, you have a solution for "apps start behind the currently focused window?" I am having this problem myself with quartz PyGTK apps and would like to know how to solve it. I followed your link but I didn't see anything that obviously appeared to be a solution. Any help most appreciated! (dave-AT-boostpro.com)

comment:4 Changed 9 years ago by mf2k (Frank Schima)

Keywords: global menu globalmenu menubar x11 gtk integration mac osx native quartz aqua interface removed
Version: 1.9.2

comment:5 Changed 8 years ago by cooljeanius (Eric Gallager)

A gtk-osx-application port exists. Then there's also the ige-mac-integration port. Do those satisfy what the OP was asking for?

comment:6 Changed 8 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.