From b875ccb136dc261d3ed3e17d3a7362fd5f9fe3b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Fri, 1 Jul 2016 19:58:24 +0200 Subject: UnitySettings: use a nux::Property for low_gfx (bzr r4132.6.1) --- plugins/unityshell/src/unityshell.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') 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; -- cgit v1.2.3