[mutter] Rename META_POWER_SAVE_UNKNOWN to UNSUPPORTED
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] Rename META_POWER_SAVE_UNKNOWN to UNSUPPORTED
- Date: Mon, 9 Sep 2013 13:30:10 +0000 (UTC)
commit cacdaa00674d85d50d7e8a1e23947c48e1907db3
Author: Giovanni Campagna <gcampagn redhat com>
Date: Mon Sep 9 13:12:20 2013 +0200
Rename META_POWER_SAVE_UNKNOWN to UNSUPPORTED
It conveys more clearly what this value means.
https://bugzilla.gnome.org/show_bug.cgi?id=707649
src/core/meta-xrandr-shared.h | 2 +-
src/core/monitor-xrandr.c | 4 ++--
src/core/monitor.c | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/core/meta-xrandr-shared.h b/src/core/meta-xrandr-shared.h
index c98f581..827876a 100644
--- a/src/core/meta-xrandr-shared.h
+++ b/src/core/meta-xrandr-shared.h
@@ -30,7 +30,7 @@
#define META_XRANDR_SHARED_H
typedef enum {
- META_POWER_SAVE_UNKNOWN = -1,
+ META_POWER_SAVE_UNSUPPORTED = -1,
META_POWER_SAVE_ON = 0,
META_POWER_SAVE_STANDBY,
META_POWER_SAVE_SUSPEND,
diff --git a/src/core/monitor-xrandr.c b/src/core/monitor-xrandr.c
index 5e02c0a..5178801 100644
--- a/src/core/monitor-xrandr.c
+++ b/src/core/monitor-xrandr.c
@@ -351,13 +351,13 @@ meta_monitor_manager_xrandr_read_current (MetaMonitorManager *manager)
manager->power_save_mode = META_POWER_SAVE_OFF;
break;
default:
- manager->power_save_mode = META_POWER_SAVE_UNKNOWN;
+ manager->power_save_mode = META_POWER_SAVE_UNSUPPORTED;
break;
}
}
else
{
- manager->power_save_mode = META_POWER_SAVE_UNKNOWN;
+ manager->power_save_mode = META_POWER_SAVE_UNSUPPORTED;
}
XRRGetScreenSizeRange (manager_xrandr->xdisplay, DefaultRootWindow (manager_xrandr->xdisplay),
diff --git a/src/core/monitor.c b/src/core/monitor.c
index 5b08e05..9ec0c2a 100644
--- a/src/core/monitor.c
+++ b/src/core/monitor.c
@@ -541,8 +541,8 @@ meta_monitor_manager_set_power_save_mode (MetaMonitorManager *manager,
{
MetaMonitorManagerClass *klass;
- if (manager->power_save_mode == META_POWER_SAVE_UNKNOWN ||
- mode == META_POWER_SAVE_UNKNOWN)
+ if (manager->power_save_mode == META_POWER_SAVE_UNSUPPORTED ||
+ mode == META_POWER_SAVE_UNSUPPORTED)
return;
klass = META_MONITOR_MANAGER_GET_CLASS (manager);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]