summaryrefslogtreecommitdiff
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2018-02-09 02:06:01 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2018-02-09 02:06:01 +0100
commit7e9662e70e87f0008e6c8f4d9f8b72610f6117ca (patch)
tree096cf88f8f580619a4d55958bc16eb9c71395a2b
parent112b360ae70d62d393085d4448592c8174d3a29c (diff)
UnityScreen: use track_obj to connect to UScreen and Settings signals
(bzr r4265.1.3)
-rw-r--r--plugins/unityshell/src/unityshell.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp
index 0ecff9515..4e91d434f 100644
--- a/plugins/unityshell/src/unityshell.cpp
+++ b/plugins/unityshell/src/unityshell.cpp
@@ -4194,13 +4194,13 @@ void UnityScreen::InitUnityComponents()
}
};
- UScreen::GetDefault()->changed.connect([this, check_launchers_size] (int, std::vector<nux::Geometry> const&) {
+ UScreen::GetDefault()->changed.connect(sigc::track_obj([this, check_launchers_size] (int, std::vector<nux::Geometry> const&) {
check_launchers_size();
- });
+ }, *this));
- Settings::Instance().launcher_position.changed.connect([this, check_launchers_size] (LauncherPosition const&) {
+ Settings::Instance().launcher_position.changed.connect(sigc::track_obj([this, check_launchers_size] (LauncherPosition const&) {
check_launchers_size();
- });
+ }, *this));
check_launchers_size();