[PATCH] Adding an argument to Sleeping signal

Richard Hughes hughsient at gmail.com
Wed May 4 05:35:56 PDT 2011

On 4 April 2011 21:29, Phillip Susi <psusi at cfl.rr.com> wrote:
> If you don't want to add an argument to the signal, is it possible to
> add it as an attribute instead?  Or would that introduce a race
> condition between the attribute being updated, and the signal being
> processed?

Sorry for the delay. I've applied the following patch:

commit 77ff3fe9fb9e13ed31a3e7ea780068a26ca61bd4
Author: Richard Hughes <richard at hughsie.com>
Date:   Wed Mar 30 15:09:57 2011 +0100

    Add new NotifySleep() and NotifyResume() signals that include the sleep type

    This allows session power managers to do different actions
depending on whether the user
    is suspending or hibernating. This allows the session policy agent
to poke other things
    (for instance, the screensaver) even if another process initiated the sleep.

    This is based on a patch from Phillip Susi <psusi at cfl.rr.com>, many thanks.

I've marked the Sleeping and Resuming methods as deprecated, and
we can remove them when we finally release 1.0.0.

Thanks for your help,


More information about the devkit-devel mailing list