[pitivi] Re-enables timeline shortcuts on enter-notify-event
- From: Jean-François Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Re-enables timeline shortcuts on enter-notify-event
- Date: Wed, 24 Apr 2013 18:04:16 +0000 (UTC)
commit 8f526d3ee5f6074654d85d7ade422c8e475dce70
Author: Mathieu Duponchelle <mathieu duponchelle epitech eu>
Date: Thu Apr 18 22:43:15 2013 +0200
Re-enables timeline shortcuts on enter-notify-event
pitivi/timeline/timeline.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index a57d1c8..7a3dbb1 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -657,6 +657,8 @@ class Timeline(Gtk.VBox, Zoomable):
self.gui.connect("key-press-event", self._keyPressEventCb)
self.gui.connect("key-release-event", self._keyReleaseEventCb)
+ self.embed.connect("enter-notify-event", self._enterNotifyEventCb)
+
self.point = Clutter.Point()
self.point.x = 0
self.point.y = 0
@@ -985,6 +987,9 @@ class Timeline(Gtk.VBox, Zoomable):
# Callbacks
+ def _enterNotifyEventCb(self, widget, event):
+ self.gui.setActionsSensitive(True)
+
def _keyPressEventCb(self, widget, event):
if event.keyval == Gdk.KEY_Shift_L:
self.shiftMask = True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]