[pitivi/gtktimeline: 18/28] timeline: Fix timeline grabbing focus on click
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi/gtktimeline: 18/28] timeline: Fix timeline grabbing focus on click
- Date: Tue, 5 May 2015 07:51:27 +0000 (UTC)
commit 333b0b968fc8709b8cc2e08b78a8a4343f906d16
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]