From 2603aca8c1ec81f1c27b91b3bba468c72f27b3f7 Mon Sep 17 00:00:00 2001 From: itdominator <1itdominator@gmail.com> Date: Thu, 27 Apr 2023 22:58:56 -0500 Subject: [PATCH] Fixed broken changes --- src/core/widgets/image_view_mixin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/widgets/image_view_mixin.py b/src/core/widgets/image_view_mixin.py index bc7409d..7e1e90b 100644 --- a/src/core/widgets/image_view_mixin.py +++ b/src/core/widgets/image_view_mixin.py @@ -1,6 +1,9 @@ # Python imports # Lib imports +import gi +gi.require_version('GdkPixbuf', '2.0') +from gi.repository import GdkPixbuf # Application imports @@ -20,6 +23,7 @@ class ImageViewMixin: self.set_from_pixbuf(self.work_pixbuff) def _rotate_left(self): + print("flipl") if self.work_pixbuff and self.pixbuff: self.work_pixbuff = self.work_pixbuff.rotate_simple(GdkPixbuf.PixbufRotation.COUNTERCLOCKWISE) self.pixbuff = self.pixbuff.rotate_simple(GdkPixbuf.PixbufRotation.COUNTERCLOCKWISE) @@ -39,7 +43,6 @@ class ImageViewMixin: def _fit_to_container(self, pixbuff = None): self.fit_to_win = True - print(self.work_pixbuff) if (self.work_pixbuff and self.pixbuff) or pixbuff: parent_aloc = self.get_parent().get_parent().get_allocation()