Commit 6797f7df authored by Alexandru Băluț's avatar Alexandru Băluț

Fix typos in code

parent 3b69b25f
......@@ -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
......
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment