Cleanup and default to scale fit window

This commit is contained in:
2023-04-26 22:00:13 -05:00
parent c11e384925
commit 0259727784
4 changed files with 5 additions and 10 deletions

View File

@@ -35,16 +35,13 @@ class ButtonControls(Gtk.ButtonBox):
zoomout_button = Gtk.Button()
lrotate_button = Gtk.Button()
vflip_button = Gtk.Button()
# NOTE: Toggle Buttons are acting broken for me so workaround ith regular buttons
self.one2one_button = Gtk.Button()
self.fit_button = Gtk.Button()
hflip_button = Gtk.Button()
rrotate_button = Gtk.Button()
zoomin_button = Gtk.Button()
# TODO: add if check against settings pull to set 1:1 or fit
self._set_class(self.one2one_button)
# self._set_class(self.fit_button)
self._set_class(self.fit_button)
zoomout_button.set_tooltip_text("Zoom Out")
lrotate_button.set_tooltip_text("Rotate Left")
@@ -76,8 +73,8 @@ class ButtonControls(Gtk.ButtonBox):
zoomout_button.connect("clicked", self._zoom_out)
lrotate_button.connect("clicked", self._rotate_left)
vflip_button.connect("clicked", self._vertical_flip)
self.one2one_button.connect("button-release-event", self._scale_1_two_1)
self.fit_button.connect("button-release-event", self._fit_to_container)
self.one2one_button.connect("clicked", self._scale_1_two_1)
self.fit_button.connect("clicked", self._fit_to_container)
hflip_button.connect("clicked", self._horizontal_flip)
rrotate_button.connect("clicked", self._rotate_right)
zoomin_button.connect("clicked", self._zoom_in)