[pitivi] timeline: Make the Shift and Control keyboard mask variables private
- From: Jean-François Fortin Tam <jfft src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] timeline: Make the Shift and Control keyboard mask variables private
- Date: Wed, 25 Sep 2013 00:30:40 +0000 (UTC)
commit 5a60a7863b8f69281d4554ff35778fa44be5b508
Author: Jean-François Fortin Tam <nekohayo gmail com>
Date: Mon Sep 23 11:27:58 2013 -0400
timeline: Make the Shift and Control keyboard mask variables private
pitivi/timeline/timeline.py | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/pitivi/timeline/timeline.py b/pitivi/timeline/timeline.py
index b1778fd..724c3f3 100644
--- a/pitivi/timeline/timeline.py
+++ b/pitivi/timeline/timeline.py
@@ -839,9 +839,9 @@ class Timeline(Gtk.VBox, Zoomable, Loggable):
self.timeline.setTimeline(bTimeline)
def getEditionMode(self, isAHandle=False):
- if self.shiftMask or (self.gui and self.gui._autoripple_active):
+ if self._shiftMask or (self.gui and self.gui._autoripple_active):
return GES.EditMode.EDIT_RIPPLE
- if isAHandle and self.controlMask:
+ if isAHandle and self._controlMask:
return GES.EditMode.EDIT_ROLL
elif isAHandle:
return GES.EditMode.EDIT_TRIM
@@ -874,8 +874,8 @@ class Timeline(Gtk.VBox, Zoomable, Loggable):
self.timeline = TimelineStage(self)
self.controls = ControlContainer(self.app, self.timeline)
self.zoomBox = ZoomBox(self)
- self.shiftMask = False
- self.controlMask = False
+ self._shiftMask = False
+ self._controlMask = False
perspective.fov_y = 90.
self.stage.set_perspective(perspective)
@@ -1316,15 +1316,15 @@ class Timeline(Gtk.VBox, Zoomable, Loggable):
def _keyPressEventCb(self, widget, event):
if event.keyval == Gdk.KEY_Shift_L:
- self.shiftMask = True
+ self._shiftMask = True
elif event.keyval == Gdk.KEY_Control_L:
- self.controlMask = True
+ self._controlMask = True
def _keyReleaseEventCb(self, widget, event):
if event.keyval == Gdk.KEY_Shift_L:
- self.shiftMask = False
+ self._shiftMask = False
elif event.keyval == Gdk.KEY_Control_L:
- self.controlMask = False
+ self._controlMask = False
def _focusInCb(self, unused_widget, unused_arg):
self.log("Timeline has grabbed focus")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]