diff options
author | infirit <[email protected]> | 2014-11-07 13:27:23 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-07 14:31:52 +0100 |
commit | 97a9f2c181817b09edd0783ed808dbd1ee49b36a (patch) | |
tree | 5a00a504d94b363d5ffd57d5777464f21312e9b3 /mate-session/gsm-manager.h | |
parent | e98d698c4899ac91e2370252ab67ce91871a72a5 (diff) | |
download | mate-session-manager-97a9f2c181817b09edd0783ed808dbd1ee49b36a.tar.bz2 mate-session-manager-97a9f2c181817b09edd0783ed808dbd1ee49b36a.tar.xz |
Add an IsSessionRunning method
This gives clients who missed the SessionRunning signal a chance
to find out if the session has entered the running phase, and
lets us avoid race conditions.
Based on gnome-session commit: b59d358796343f81b31d4a398998faedd20b8f4b
From: Matthias Clasen <[email protected]>
Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=636229
Diffstat (limited to 'mate-session/gsm-manager.h')
-rw-r--r-- | mate-session/gsm-manager.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mate-session/gsm-manager.h b/mate-session/gsm-manager.h index 035d11b..4422f59 100644 --- a/mate-session/gsm-manager.h +++ b/mate-session/gsm-manager.h @@ -190,6 +190,10 @@ gboolean gsm_manager_is_autostart_condition_handled (GsmManager * gboolean gsm_manager_set_phase (GsmManager *manager, GsmManagerPhase phase); +gboolean gsm_manager_is_session_running (GsmManager *manager, + gboolean *running, + GError **error); + #ifdef __cplusplus } #endif |