Re: [gtk-osx-users] getting a signal when the dock icon is clicked on



On 17/03/16 18:00, Christoph Reiter wrote:
On Wed, Mar 16, 2016 at 6:54 AM, Antoine Martin <antoine nagafix co uk> wrote:
Hi,

I would like to get notified when the dock is clicked on, so that I can
restore any windows currently minimized. (that's the expected behaviour
on OSX apparently)

The only signal I can listen for that fires when one clicks on the dock
is the "NSApplicationDidBecomeActive", but that's not really what I am
looking for since it will also fire in other cases.
Am I missing something?
Is anyone already doing this in other gtk-osx applications?

If you happen to use Python have a look at
https://github.com/quodlibet/quodlibet/blob/master/quodlibet/quodlibet/__init__.py#L678

We do use Python and your code example does *exactly* what we need.
(and your coding style is also way better than mine)

Thank you very much!
Antoine


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