[pitivi/1.0] Fix typos in code



commit e65cc7319cd9e143cd91a2ce78d45b8163b54ab5
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 6d73f4b..3b57be4 100644
--- a/pitivi/viewer/move_scale_overlay.py
+++ b/pitivi/viewer/move_scale_overlay.py
@@ -367,7 +367,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():
@@ -385,7 +385,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])
 
@@ -453,7 +453,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]