[gnome-session] gsm: Add gsm_manager_get_failsafe()



commit 4b561b5ea22b62804ce92102f841bc55cdb4a1f2
Author: Vincent Untz <vuntz gnome org>
Date:   Mon Nov 29 15:03:32 2010 +0100

    gsm: Add gsm_manager_get_failsafe()

 gnome-session/gsm-manager.c |    8 ++++++++
 gnome-session/gsm-manager.h |    2 ++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gnome-session/gsm-manager.c b/gnome-session/gsm-manager.c
index 1d937a0..d5a774f 100644
--- a/gnome-session/gsm-manager.c
+++ b/gnome-session/gsm-manager.c
@@ -1738,6 +1738,14 @@ gsm_manager_set_failsafe (GsmManager *manager,
         manager->priv->failsafe = enabled;
 }
 
+gboolean
+gsm_manager_get_failsafe (GsmManager *manager)
+{
+        g_return_val_if_fail (GSM_IS_MANAGER (manager), FALSE);
+
+	return manager->priv->failsafe;
+}
+
 static gboolean
 _client_has_startup_id (const char *id,
                         GsmClient  *client,
diff --git a/gnome-session/gsm-manager.h b/gnome-session/gsm-manager.h
index 17c70b3..e34308a 100644
--- a/gnome-session/gsm-manager.h
+++ b/gnome-session/gsm-manager.h
@@ -114,6 +114,8 @@ GType               gsm_manager_get_type                       (void);
 GsmManager *        gsm_manager_new                            (GsmStore       *client_store,
                                                                 gboolean        failsafe);
 
+gboolean            gsm_manager_get_failsafe                   (GsmManager     *manager);
+
 gboolean            gsm_manager_add_autostart_app              (GsmManager     *manager,
                                                                 const char     *path,
                                                                 const char     *provides);



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