allocation -> get_allocation
Thomas Ross
4 years ago
1447 | 1447 | |
1448 | 1448 | def thumbpane_set_size(self): |
1449 | 1449 | self.thumbcolumn.set_fixed_width(self.thumbpane_get_size()) |
1450 | self.window_resized(None, self.window.allocation, True) | |
1450 | self.window_resized(None, self.window.get_allocation(), True) | |
1451 | 1451 | |
1452 | 1452 | def thumbpane_get_size(self): |
1453 | 1453 | return int(self.thumbnail_size * 1.3) |
7092 | 7092 | while Gtk.events_pending(): |
7093 | 7093 | Gtk.main_iteration() |
7094 | 7094 | |
7095 | ss_winheight = self.slideshow_window.allocation.height | |
7096 | ss_win2width = self.slideshow_window2.allocation.width | |
7097 | winheight = self.window.allocation.height | |
7098 | winwidth = self.window.allocation.width | |
7095 | ss_winheight = self.slideshow_window.get_allocation().height | |
7096 | ss_win2width = self.slideshow_window2.get_allocation().width | |
7097 | winheight = self.window.get_allocation().height | |
7098 | winwidth = self.window.get_allocation().width | |
7099 | 7099 | y = -3.0 |
7100 | 7100 | self.controls_moving = True |
7101 | 7101 | while y < ss_winheight: |
7115 | 7115 | |
7116 | 7116 | (xpos, ypos) = self.window.get_position() |
7117 | 7117 | |
7118 | ss_winheight = self.slideshow_window.allocation.height | |
7119 | ss_win2width = self.slideshow_window2.allocation.width | |
7120 | winheight = self.window.allocation.height | |
7121 | winwidth = self.window.allocation.width | |
7122 | y = float(self.slideshow_window.allocation.height * 1.0) | |
7118 | ss_winheight = self.slideshow_window.get_allocation().height | |
7119 | ss_win2width = self.slideshow_window2.get_allocation().width | |
7120 | winheight = self.window.get_allocation().height | |
7121 | winwidth = self.window.get_allocation().width | |
7122 | y = float(self.slideshow_window.get_allocation().height * 1.0) | |
7123 | 7123 | self.controls_moving = True |
7124 | 7124 | while y > -3: |
7125 | 7125 | self.slideshow_window.move(2 + xpos, int(winheight - y - 2)) |