Ubuntu Pastebin

Paste from Marco Trevisan (3v1n0) at Wed, 17 Feb 2016 14:51:32 +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
=== modified file 'launcher/FileManagerLauncherIcon.cpp'
--- launcher/FileManagerLauncherIcon.cpp  2016-02-09 10:43:42 +0000
+++ launcher/FileManagerLauncherIcon.cpp  2016-02-17 14:51:25 +0000
@@ -67,6 +67,8 @@
     icon_name = (icon.empty() ? DEFAULT_ICON : icon);
   }));
 
+  g_print("%s: '%s'", G_STRFUNC, TRASH_PATH.c_str());
+  g_print("%s: '%s'", G_STRFUNC, TRASH_URI.c_str());
   UpdateStorageWindows();
 }
 
@@ -82,6 +84,7 @@
 
 bool FileManagerLauncherIcon::IsLocationManaged(std::string const& location) const
 {
+  g_print("%s: '%s'", G_STRFUNC, location.c_str());
   if (location.empty())
     return true;
 
@@ -112,7 +115,9 @@
 
   for (auto const& app_win : ApplicationLauncherIcon::GetManagedWindows())
   {
-    if (IsLocationManaged(file_manager_->LocationForWindow(app_win)))
+    bool managed = IsLocationManaged(file_manager_->LocationForWindow(app_win));
+    g_print("%s: '%lu': %d", G_STRFUNC, app_win->window_id(),managed);
+    if (managed)
       fm_windows.push_back(app_win);
   }
 
Download as text