Cleanup and default to scale fit window
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user