Fixed broken changes

This commit is contained in:
itdominator 2023-04-27 22:58:56 -05:00
parent 2b0703eb60
commit 2603aca8c1
1 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,9 @@
# Python imports # Python imports
# Lib imports # Lib imports
import gi
gi.require_version('GdkPixbuf', '2.0')
from gi.repository import GdkPixbuf
# Application imports # Application imports
@ -20,6 +23,7 @@ class ImageViewMixin:
self.set_from_pixbuf(self.work_pixbuff) self.set_from_pixbuf(self.work_pixbuff)
def _rotate_left(self): def _rotate_left(self):
print("flipl")
if self.work_pixbuff and self.pixbuff: if self.work_pixbuff and self.pixbuff:
self.work_pixbuff = self.work_pixbuff.rotate_simple(GdkPixbuf.PixbufRotation.COUNTERCLOCKWISE) self.work_pixbuff = self.work_pixbuff.rotate_simple(GdkPixbuf.PixbufRotation.COUNTERCLOCKWISE)
self.pixbuff = self.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): def _fit_to_container(self, pixbuff = None):
self.fit_to_win = True self.fit_to_win = True
print(self.work_pixbuff)
if (self.work_pixbuff and self.pixbuff) or pixbuff: if (self.work_pixbuff and self.pixbuff) or pixbuff:
parent_aloc = self.get_parent().get_parent().get_allocation() parent_aloc = self.get_parent().get_parent().get_allocation()