=== modified file 'UnityCore/GnomeSessionManager.cpp'
--- UnityCore/GnomeSessionManager.cpp 2016-11-02 16:38:47 +0000
+++ UnityCore/GnomeSessionManager.cpp 2017-01-16 16:40:23 +0000
@@ -124,13 +124,13 @@
"org.freedesktop.login1.User",
G_BUS_TYPE_SYSTEM);
- proxy->GetProperty("Display", [this, proxy] (GVariant *variant) {
+ proxy->GetProperty("Display", sigc::track_obj([this, proxy] (GVariant *variant) {
if (!variant || g_variant_n_children(variant) < 2)
return;
glib::Variant tmp(g_variant_get_child_value(variant, 1), glib::StealRef());
SetupLogin1Proxy(tmp.GetObjectPath());
- });
+ }, *this));
}
}
=== modified file 'UnityCore/GnomeSessionManagerImpl.h'
--- UnityCore/GnomeSessionManagerImpl.h 2016-11-02 16:38:47 +0000
+++ UnityCore/GnomeSessionManagerImpl.h 2017-01-16 16:38:58 +0000
@@ -41,7 +41,7 @@
};
}
-struct GnomeManager::Impl
+struct GnomeManager::Impl : sigc::trackable
{
Impl(GnomeManager* parent, bool test_mode = false);
~Impl();