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

John Ralls <jralls ceridwen us> writes:

> On Sep 15, 2012, at 12:00 PM, Dirk Hohndel <dirk hohndel org> wrote:
>> 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.
> What exactly are you looking for here? From what API? 
> Maybe this is what you have in mind:

Excellent - from the description this sounds like what I was looking for!

>> 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?
> You're in the wrong mailing-list, then. This is support for the jhbuild tools.

I have used them in the past. If the gtk-mac-bundler makes things much
easier maybe it's time to switch back.

> Yes, there's tons of documentation. Overwhelming tons. You should perhaps start with

Thank you for all the pointers. Really appreciated.


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