Re: [gtk-osx-users] Application launching in the background

On September 15, 2012 11:51:46 AM John Ralls <jralls ceridwen us> wrote:

>> > When I start my Gtk application it doesn't become the foreground application >> > - the user has to click on it to make it the active application. That's obviously
>> > highly undesirable.
>> >
>> > Can the app make itself the foreground app? Does this require some other
>> > magic?
>> >
>> How are you starting  your app?
> Right now usually from the command line, but the same happens if I start it from finder

Depending on how you launch from the command-line, it can be expected behavior (if you specifically call your launcher script or the executable, but not if you use "open"). That it's happening from Finder suggests that your app bundle might not be set up right. Did you create it with gtk-mac-bundler?

So there is no programmatic way to get the app to the foreground? That's... odd.

The bundle is currently hand crafted (I'm using MacPorts, not the jhbuild method). What is required to make this work? Is there documentation that I just didn't find?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]