[pitivi] timeline: Fix timeline grabbing focus on click



commit 00a538080f72794c64ad89e96b54ca5c3885b585
Author: Thibault Saunier <tsaunier gnome org>
Date:   Fri May 1 17:35:10 2015 +0200

    timeline: Fix timeline grabbing focus on click
    
    Summary:
    Just override do_button_press_event instead of a callback that we
    forgot to actually connect
    
    Fixes T39
    
    Maniphest Tasks: T39
    
    Reviewers: Mathieu_Du
    
    Differential Revision: http://phabricator.freedesktop.org/D135

 pitivi/timeline/timeline.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 5cdd616..1e0854a 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -1576,10 +1576,12 @@ class TimelineContainer(Gtk.Grid, Zoomable, Loggable):
         self.log("Timeline has lost focus")
         self.setActionsSensitivity(False)
 
-    def __buttonPressCb(self, unused_event):
+    def do_button_press_event(self, event):
         self.pressed = True
         self.grab_focus()  # Prevent other widgets from being confused
 
+        return True
+
     # Callbacks
     def _renderingSettingsChangedCb(self, project, item, value):
         """


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