[pitivi] elements: Remove unused key-press-event signal handling



commit feeb498f3aa616e6475148c5a1374b0c05aba666
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Sun Jan 12 15:34:25 2014 +0100

    elements: Remove unused key-press-event signal handling

 pitivi/timeline/elements.py |    4 ----
 pitivi/timeline/timeline.py |    2 +-
 2 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/pitivi/timeline/elements.py b/pitivi/timeline/elements.py
index e0b4a13..d6a5a47 100644
--- a/pitivi/timeline/elements.py
+++ b/pitivi/timeline/elements.py
@@ -876,7 +876,6 @@ class Keyframe(Clutter.Actor):
         self.dragAction.connect("drag-begin", self._dragBeginCb)
         self.dragAction.connect("drag-end", self._dragEndCb)
         self.dragAction.connect("drag-progress", self._dragProgressCb)
-        self.connect("key-press-event", self._keyPressEventCb)
         self.connect("enter-event", self._enterEventCb)
         self.connect("leave-event", self._leaveEventCb)
         self.connect("button-press-event", self._clickedCb)
@@ -917,9 +916,6 @@ class Keyframe(Clutter.Actor):
 
         self.lastClick = datetime.now()
 
-    def _keyPressEventCb(self, actor, event):
-        print event, dir(event)
-
     def _enterEventCb(self, actor, event):
         self.timelineElement.set_reactive(False)
         self.set_background_color(KEYFRAME_SELECTED_COLOR)
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index 7776fd7..1381dec 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -1297,7 +1297,7 @@ class TimelineContainer(Gtk.Grid, Zoomable, Loggable):
 
     # Callbacks
 
-    def _keyPressEventCb(self, widget, event):
+    def _keyPressEventCb(self, unused_widget, event):
         # This is used both for changing the selection modes and for affecting
         # the seek keyboard shortcuts further below
         if event.keyval == Gdk.KEY_Shift_L:


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