From 3f9213dc3239e44ef2cf32d3ef959dcdd023522d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 31 Mar 2016 07:57:11 +0200 Subject: Launcher, Panel, TextInput: use cache texture_invalidated to reload textures So we can remove we workaround in UnitySettings as the signal is always emitted after removing all the themed textures that we have. (bzr r4093.2.28) --- plugins/unityshell/src/unityshell.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'plugins') diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp index 417269462..5070f37da 100644 --- a/plugins/unityshell/src/unityshell.cpp +++ b/plugins/unityshell/src/unityshell.cpp @@ -41,7 +41,6 @@ #include "PanelView.h" #include "PluginAdapter.h" #include "QuicklistManager.h" -#include "TextureCache.h" #include "ThemeSettings.h" #include "Timer.h" #include "XKeyboardUtil.h" @@ -4014,10 +4013,6 @@ void UnityScreen::InitUnityComponents() bghash_.reset(new BGHash()); LOG_INFO(logger) << "InitUnityComponents-BGHash " << timer.ElapsedSeconds() << "s"; - // Ugly hack to ensure that texture cache will connect promptly to theme changed signal - TextureCache::GetDefault(); - LOG_INFO(logger) << "InitUnityComponents-TextureCache " << timer.ElapsedSeconds() << "s"; - auto xdnd_collection_window = std::make_shared(); auto xdnd_start_stop_notifier = std::make_shared(); auto xdnd_manager = std::make_shared(xdnd_start_stop_notifier, xdnd_collection_window); -- cgit v1.2.3