Rename META_POWER_SAVE_UNKNOWN to UNSUPPORTED

It conveys more clearly what this value means.

https://bugzilla.gnome.org/show_bug.cgi?id=707649
This commit is contained in:
Giovanni Campagna 2013-09-09 13:12:20 +02:00
parent 2b1eb206d3
commit 9f64f2cf4f
3 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@
#define META_XRANDR_SHARED_H #define META_XRANDR_SHARED_H
typedef enum { typedef enum {
META_POWER_SAVE_UNKNOWN = -1, META_POWER_SAVE_UNSUPPORTED = -1,
META_POWER_SAVE_ON = 0, META_POWER_SAVE_ON = 0,
META_POWER_SAVE_STANDBY, META_POWER_SAVE_STANDBY,
META_POWER_SAVE_SUSPEND, META_POWER_SAVE_SUSPEND,

View File

@ -351,13 +351,13 @@ meta_monitor_manager_xrandr_read_current (MetaMonitorManager *manager)
manager->power_save_mode = META_POWER_SAVE_OFF; manager->power_save_mode = META_POWER_SAVE_OFF;
break; break;
default: default:
manager->power_save_mode = META_POWER_SAVE_UNKNOWN; manager->power_save_mode = META_POWER_SAVE_UNSUPPORTED;
break; break;
} }
} }
else 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), XRRGetScreenSizeRange (manager_xrandr->xdisplay, DefaultRootWindow (manager_xrandr->xdisplay),

View File

@ -433,8 +433,8 @@ meta_monitor_manager_set_power_save_mode (MetaMonitorManager *manager,
{ {
MetaMonitorManagerClass *klass; MetaMonitorManagerClass *klass;
if (manager->power_save_mode == META_POWER_SAVE_UNKNOWN || if (manager->power_save_mode == META_POWER_SAVE_UNSUPPORTED ||
mode == META_POWER_SAVE_UNKNOWN) mode == META_POWER_SAVE_UNSUPPORTED)
return; return;
klass = META_MONITOR_MANAGER_GET_CLASS (manager); klass = META_MONITOR_MANAGER_GET_CLASS (manager);