summaryrefslogtreecommitdiff
path: root/src/gpm-screensaver.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-11-04 02:58:20 -0800
committerStefano Karapetsas <[email protected]>2012-11-04 02:58:20 -0800
commit773472d4a41e60cf7ad8db55737b0fcd21b934ba (patch)
tree774710082697e9b466b1f87c311fedbe2e0ce05f /src/gpm-screensaver.c
parent7fa7c26dce5c987539f70b323ae1ff9d40752b0b (diff)
parent6e3ef00b551ed8ac5b877f0c7c8ebbc4f7fcb3ff (diff)
downloadmate-power-manager-773472d4a41e60cf7ad8db55737b0fcd21b934ba.tar.bz2
mate-power-manager-773472d4a41e60cf7ad8db55737b0fcd21b934ba.tar.xz
Merge pull request #21 from bhull2010/master
Remove dependency on mate-screensaver's schema
Diffstat (limited to 'src/gpm-screensaver.c')
-rw-r--r--src/gpm-screensaver.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/gpm-screensaver.c b/src/gpm-screensaver.c
index 5d049dc..7aad8a2 100644
--- a/src/gpm-screensaver.c
+++ b/src/gpm-screensaver.c
@@ -25,7 +25,6 @@
#include <glib.h>
#include <glib/gi18n.h>
#include <dbus/dbus-glib.h>
-#include <gio/gio.h>
#include "gpm-screensaver.h"
#include "gpm-common.h"
@@ -42,7 +41,6 @@ static void gpm_screensaver_finalize (GObject *object);
struct GpmScreensaverPrivate
{
DBusGProxy *proxy;
- GSettings *settings;
};
enum {
@@ -128,20 +126,6 @@ gpm_screensaver_proxy_disconnect_more (GpmScreensaver *screensaver)
#endif
/**
- * gpm_screensaver_lock_enabled:
- * @screensaver: This class instance
- * Return value: If mate-screensaver is set to lock the screen on screensave
- **/
-gboolean
-gpm_screensaver_lock_enabled (GpmScreensaver *screensaver)
-{
- gboolean enabled;
- g_return_val_if_fail (GPM_IS_SCREENSAVER (screensaver), FALSE);
- enabled = g_settings_get_boolean (screensaver->priv->settings, GS_SETTINGS_PREF_LOCK_ENABLED);
- return enabled;
-}
-
-/**
* gpm_screensaver_lock
* @screensaver: This class instance
* Return value: Success value
@@ -357,7 +341,6 @@ gpm_screensaver_init (GpmScreensaver *screensaver)
GS_LISTENER_SERVICE,
GS_LISTENER_PATH,
GS_LISTENER_INTERFACE);
- screensaver->priv->settings = g_settings_new (GS_SETTINGS_SCHEMA);
}
/**
@@ -374,7 +357,6 @@ gpm_screensaver_finalize (GObject *object)
screensaver = GPM_SCREENSAVER (object);
screensaver->priv = GPM_SCREENSAVER_GET_PRIVATE (screensaver);
- g_object_unref (screensaver->priv->settings);
g_object_unref (screensaver->priv->proxy);
G_OBJECT_CLASS (gpm_screensaver_parent_class)->finalize (object);