Fix incorrect sizing of sub windows when there's no titlebar (Emilio Pozuelo Monfort)
This commit is contained in:
parent
f162f3cdc0
commit
2443d4b871
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user