Fix allocations (no longer an attribute) when balancing (gtk2->gtk3 diff)
This commit is contained in:
parent
724b563073
commit
3b290dd563
@ -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
|
||||
#--------
|
||||
#|\ /|
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user