Package list mirage / f797e6c
Use self.layout's width and height for available_image_X Thomas Ross 2 years ago
1 changed file(s) with 2 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
16431643 self.layout.move(self.imageview, x_shift, y_shift)
16441644
16451645 def available_image_width(self):
1646 width = self.window.get_size()[0]
1647 if not self.fullscreen_mode:
1648 if self.thumbpane_show:
1649 width -= self.thumbscroll.size_request().width
1650 return width
1646 return self.layout.get_allocation().width
16511647
16521648 def available_image_height(self):
1653 height = self.window.get_size()[1]
1654 if not self.fullscreen_mode:
1655 height -= self.menubar.size_request().height # TODO
1656 if self.toolbar_show:
1657 height -= self.toolbar.size_request().height
1658 if self.statusbar_show:
1659 height -= self.statusbar.size_request().height
1660 return height
1649 return self.layout.get_allocation().height
16611650
16621651 def save_image(self, action, parameter, data):
16631652 if self.action_group.lookup_action("save-image").get_enabled():