diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index d59a9065..278069b3 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -910,7 +910,7 @@ class Terminal(Gtk.VBox): # on self return - alloc = widget.allocation + alloc = widget.get_allocation() rect = (0, 0, alloc.width, alloc.height) if self.config['use_theme_colors']: @@ -1021,10 +1021,11 @@ class Terminal(Gtk.VBox): """Get our location within the terminal""" pos = '' #get the diagonales function for the receiving widget - coef1 = float(term.allocation.height)/float(term.allocation.width) - coef2 = -float(term.allocation.height)/float(term.allocation.width) + term_alloc = term.get_allocation() + coef1 = float(term_alloc.height)/float(term_alloc.width) + coef2 = -float(term_alloc.height)/float(term_alloc.width) b1 = 0 - b2 = term.allocation.height + b2 = term_alloc.height #determine position in rectangle #-------- #|\ /| diff --git a/terminatorlib/window.py b/terminatorlib/window.py index 3a7ccccd..a7a86771 100755 --- a/terminatorlib/window.py +++ b/terminatorlib/window.py @@ -834,7 +834,7 @@ class Window(Container, Gtk.Window): if len(winners) > 1: # Break an n-way tie using the cursor position - term_alloc = terminal.allocation + term_alloc = terminal.get_allocation() cursor_x = term_alloc.x + term_alloc.width / 2 cursor_y = term_alloc.y + term_alloc.height / 2