From 2443d4b871c5f1272dd6a46e50962348dd4f03a2 Mon Sep 17 00:00:00 2001 From: Stephen Boddy Date: Mon, 6 Feb 2017 04:51:10 +0100 Subject: [PATCH] Fix incorrect sizing of sub windows when there's no titlebar (Emilio Pozuelo Monfort) --- terminatorlib/paned.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terminatorlib/paned.py b/terminatorlib/paned.py index 90903392..a1a4a83d 100755 --- a/terminatorlib/paned.py +++ b/terminatorlib/paned.py @@ -502,13 +502,13 @@ class HPaned(Paned, Gtk.HPaned): self.register_signals(HPaned) self.cnxids.new(self, 'button-press-event', self.on_button_press) self.cnxids.new(self, 'button-release-event', self.on_button_release) - self.set_property('position-set', True) def get_length(self): return(self.get_allocated_width()) def set_pos(self, pos): Gtk.HPaned.set_position(self, pos) + self.set_property('position-set', True) class VPaned(Paned, Gtk.VPaned): """Merge Gtk.VPaned into our base Paned Container""" @@ -519,13 +519,13 @@ class VPaned(Paned, Gtk.VPaned): self.register_signals(VPaned) self.cnxids.new(self, 'button-press-event', self.on_button_press) self.cnxids.new(self, 'button-release-event', self.on_button_release) - self.set_property('position-set', True) def get_length(self): return(self.get_allocated_height()) def set_pos(self, pos): Gtk.VPaned.set_position(self, pos) + self.set_property('position-set', True) GObject.type_register(HPaned) GObject.type_register(VPaned)