[pitivi] Fix typos in code
- From: Alexandru Băluț <alexbalut src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] Fix typos in code
- Date: Tue, 6 Feb 2018 21:31:38 +0000 (UTC)
commit 6797f7dfdab63d5f2a2c4d382f4b2961aefd42cb
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Tue Feb 6 21:42:18 2018 +0100
Fix typos in code
pitivi/viewer/move_scale_overlay.py | 6 +++---
pitivi/viewer/viewer.py | 8 ++++----
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/pitivi/viewer/move_scale_overlay.py b/pitivi/viewer/move_scale_overlay.py
index 75d93ec..bf43107 100644
--- a/pitivi/viewer/move_scale_overlay.py
+++ b/pitivi/viewer/move_scale_overlay.py
@@ -408,7 +408,7 @@ class MoveScaleOverlay(Overlay):
self.handles[(Edge.bottom, Edge.left)].position = numpy.array([0, size[1]])
self.handles[(Edge.bottom, Edge.right)].position = numpy.array([size[0], size[1]])
self.handles[(Edge.top, Edge.right)].position = numpy.array([size[0], 0])
- self.__update_egdes_from_corners()
+ self.__update_edges_from_corners()
def __set_position(self, position):
for handle in self.handles.values():
@@ -426,7 +426,7 @@ class MoveScaleOverlay(Overlay):
for handle in self.handles.values():
handle.restrict_radius_to_size(smaller_size)
- def __update_egdes_from_corners(self):
+ def __update_edges_from_corners(self):
half_w = numpy.array([self.__get_width() * 0.5, 0])
half_h = numpy.array([0, self.__get_height() * 0.5])
@@ -494,7 +494,7 @@ class MoveScaleOverlay(Overlay):
if self.__clicked_handle:
# Resize Box / Use Handle
self.__clicked_handle.on_drag(click_to_cursor)
- self.__update_egdes_from_corners()
+ self.__update_edges_from_corners()
# We only need to change translation coordinates in the source for resizing
# when handle does not return NULL for get_source_position
diff --git a/pitivi/viewer/viewer.py b/pitivi/viewer/viewer.py
index 645ca44..8494042 100644
--- a/pitivi/viewer/viewer.py
+++ b/pitivi/viewer/viewer.py
@@ -498,16 +498,16 @@ class ViewerWidget(Gtk.AspectFrame, Loggable):
self.set_property("ratio", float(ratio))
def do_get_preferred_width(self):
- mininum, unused_natural = Gtk.AspectFrame.do_get_preferred_width(self)
+ minimum, unused_natural = Gtk.AspectFrame.do_get_preferred_width(self)
# Do not let a chance for Gtk to choose video natural size
# as we want to have full control
- return mininum, mininum + 1
+ return minimum, minimum + 1
def do_get_preferred_height(self):
- mininum, unused_natural = Gtk.AspectFrame.do_get_preferred_height(self)
+ minimum, unused_natural = Gtk.AspectFrame.do_get_preferred_height(self)
# Do not let a chance for Gtk to choose video natural size
# as we want to have full control
- return mininum, mininum + 1
+ return minimum, minimum + 1
class PlayPauseButton(Gtk.Button, Loggable):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]