Ubuntu Pastebin

Paste from Marco Trevisan (3v1n0) at Mon, 16 Jan 2017 16:41:08 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
=== 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();
Download as text