Re: [gtk+osx] gtk for a GNU/configure program?
Status: Beta
Brought to you by:
jralls
From: Ronald O. <ous...@ci...> - 2004-03-06 06:50:07
|
On 5-mrt-04, at 18:02, Paul Emsley wrote: > > So I compile buttons: > $ gcc `gtk-config --cflags` buttons.c -o buttons `gtk-config --libs` > > and run it > $ ./buttons I guess that is the problem, on OSX only binaries in application bundles have full-featured access to the Window Server. What you should do is create a minimal app bundle for the application and copy the executable into it: mkdir -p buttons.app/Contents/MacOS cp buttons buttons.app/Contents/MacOS/buttons I'm not sure if an Info.plist is required, you can copy one from another application. Now run buttons.app/Contents/MacOS/buttons and you should have a working application. Ronald P.S. There is an undocumented function that can be used to enable full access to the window server, someone posted code for that in the PyObjC patch manager (http://sf.net/projects/pyobjc, and then the patches tab). -- X|support bv http://www.xsupport.nl/ T: +31 610271479 F: +31 204416173 |