From addb3947ddc5ac607d4722cf699695649e6efb39 Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Fri, 19 Jun 2015 03:36:41 +0200 Subject: [PATCH] Fix allocations not having the x,y position just w,h (gtk3 bug? gtk2->gtk3 diff?) --- terminatorlib/terminal.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 278069b3..8c45962d 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -1506,6 +1506,12 @@ class Terminal(Gtk.VBox): value = adjustment.get_value() + amount adjustment.set_value(min(value, bottom)) + def get_allocation(self): + """Get a real allocation which includes the bloody x and y coordinates (grumble, grumble)""" + alloc = super(Terminal, self).get_allocation() + alloc.x, alloc.y = self.translate_coordinates(self.get_toplevel(), 0, 0) + return alloc + # There now begins a great list of keyboard event handlers def key_zoom_in(self): self.zoom_in()