diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2016-07-01 19:58:24 +0200 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2016-07-01 19:58:24 +0200 |
| commit | b875ccb136dc261d3ed3e17d3a7362fd5f9fe3b6 (patch) | |
| tree | dd075c35eb5b945aae35c214319e9b20b76cd4bb /plugins | |
| parent | 07bd79a32f8321484fd65e947d7711566bbe7270 (diff) | |
UnitySettings: use a nux::Property for low_gfx
(bzr r4132.6.1)
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/unityshell/src/unityshell.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp index 9aa9cdad0..521779596 100644 --- a/plugins/unityshell/src/unityshell.cpp +++ b/plugins/unityshell/src/unityshell.cpp @@ -301,12 +301,12 @@ UnityScreen::UnityScreen(CompScreen* screen) (getenv("UNITY_LOW_GFX_MODE") != NULL && atoi(getenv("UNITY_LOW_GFX_MODE")) == 1) || optionGetLowGraphicsMode()) { - unity_settings_.SetLowGfxMode(true); + unity_settings_.low_gfx = true; } if (getenv("UNITY_LOW_GFX_MODE") != NULL && atoi(getenv("UNITY_LOW_GFX_MODE")) == 0) { - unity_settings_.SetLowGfxMode(false); + unity_settings_.low_gfx = false; } #endif @@ -3727,7 +3727,7 @@ void UnityScreen::optionChanged(CompOption* opt, UnityshellOptions::Options num) else BackgroundEffectHelper::blur_type = (unity::BlurType)optionGetDashBlurExperimental(); - unity::Settings::Instance().SetLowGfxMode(optionGetLowGraphicsMode()); + unity::Settings::Instance().low_gfx = optionGetLowGraphicsMode(); break; case UnityshellOptions::DecayRate: launcher_options->edge_decay_rate = optionGetDecayRate() * 100; |
