summaryrefslogtreecommitdiff
path: root/src/gpm-dpms.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-11-01 17:33:16 -0700
committerStefano Karapetsas <[email protected]>2012-11-01 17:33:16 -0700
commit7c7b09026bde3ffd1ce886fd545e7bfa1e59aec7 (patch)
tree076ec7419159262e65f608da7a3dbccdd8ec3a5a /src/gpm-dpms.c
parent83dc101045267b2e793af3af4716f1cf02089ac6 (diff)
parent972be3627b8b6368a0e8c971ade7963ea7d459de (diff)
downloadmate-power-manager-7c7b09026bde3ffd1ce886fd545e7bfa1e59aec7.tar.bz2
mate-power-manager-7c7b09026bde3ffd1ce886fd545e7bfa1e59aec7.tar.xz
Merge pull request #19 from bhull2010/gsettings
Port to Gsettings
Diffstat (limited to 'src/gpm-dpms.c')
-rw-r--r--src/gpm-dpms.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/gpm-dpms.c b/src/gpm-dpms.c
index 13928f9..8eaf704 100644
--- a/src/gpm-dpms.c
+++ b/src/gpm-dpms.c
@@ -190,53 +190,6 @@ gpm_dpms_x11_set_mode (GpmDpms *dpms, GpmDpmsMode mode, GError **error)
}
/**
- * gpm_dpms_mode_from_string:
- **/
-GpmDpmsMode
-gpm_dpms_mode_from_string (const gchar *str)
-{
- if (str == NULL)
- return GPM_DPMS_MODE_UNKNOWN;
- if (strcmp (str, "on") == 0)
- return GPM_DPMS_MODE_ON;
- if (strcmp (str, "standby") == 0)
- return GPM_DPMS_MODE_STANDBY;
- if (strcmp (str, "suspend") == 0)
- return GPM_DPMS_MODE_SUSPEND;
- if (strcmp (str, "off") == 0)
- return GPM_DPMS_MODE_OFF;
- return GPM_DPMS_MODE_UNKNOWN;
-}
-
-/**
- * gpm_dpms_mode_to_string:
- **/
-const gchar *
-gpm_dpms_mode_to_string (GpmDpmsMode mode)
-{
- const gchar *str = NULL;
-
- switch (mode) {
- case GPM_DPMS_MODE_ON:
- str = "on";
- break;
- case GPM_DPMS_MODE_STANDBY:
- str = "standby";
- break;
- case GPM_DPMS_MODE_SUSPEND:
- str = "suspend";
- break;
- case GPM_DPMS_MODE_OFF:
- str = "off";
- break;
- default:
- str = NULL;
- break;
- }
- return str;
-}
-
-/**
* gpm_dpms_set_mode:
**/
gboolean