[gimp/gimp-2-10] tools: in performance-log-view.py, don't change call-graph path ...



commit 8624f3070e9c331b177f61fc3ae4a06460361f55
Author: Ell <ell_se yahoo com>
Date:   Sun Sep 30 08:48:40 2018 -0400

    tools: in performance-log-view.py, don't change call-graph path ...
    
    ... when selecting a function's samples
    
    Since we now preserve the call-graph path across state changes,
    there's no need to explictly set the path after selecting a
    function's samples in the profile view.
    
    (cherry picked from commit b672f2007537de54be17c28327fc3c51c4b19f93)

 tools/performance-log-viewer.py | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)
---
diff --git a/tools/performance-log-viewer.py b/tools/performance-log-viewer.py
index 6f8d73d756..6d8254d608 100755
--- a/tools/performance-log-viewer.py
+++ b/tools/performance-log-viewer.py
@@ -2704,20 +2704,10 @@ class ProfileViewer (Gtk.ScrolledWindow):
             history.end_group ()
 
         def select_samples_clicked (self, button):
-            history.start_group ()
-
-            self.root.select (self.id)
+            selection.select ({frame.sample for frame in self.frames})
 
-            sel = set ()
-
-            for frame in self.frames:
-                sel.add (frame.sample)
-
-            selection.select (sel)
             selection.change_complete ()
 
-            history.end_group ()
-
         def tree_selection_changed (self, tree_sel):
             self.remove_subprofile ()
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]