summaryrefslogtreecommitdiff
path: root/src/gpm-dpms.c
diff options
context:
space:
mode:
authorBrent Hull <[email protected]>2012-10-30 15:55:35 -0400
committerBrent Hull <[email protected]>2012-10-30 15:55:35 -0400
commit060a4507145425c02c6aa0ef810138c04d38f5a9 (patch)
tree696262b89d749abf74ccec08260969679ef70d6e /src/gpm-dpms.c
parente58350ab1a00d55e82f7ae97589562e10a77c485 (diff)
downloadmate-power-manager-060a4507145425c02c6aa0ef810138c04d38f5a9.tar.bz2
mate-power-manager-060a4507145425c02c6aa0ef810138c04d38f5a9.tar.xz
Use gsettings enums (partially from GNOME)
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