Fix incorrect sizing of sub windows when there's no titlebar (Emilio Pozuelo Monfort)

This commit is contained in:
Stephen Boddy 2017-02-06 04:51:10 +01:00
parent f162f3cdc0
commit 2443d4b871
1 changed files with 2 additions and 2 deletions

View File

@ -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)