--- a/pgconsole/panedext.py Thu Mar 07 18:26:52 2013 +0100
+++ b/pgconsole/panedext.py Sun Mar 10 16:14:53 2013 +0100
@@ -1,8 +1,8 @@
-import gtk
+from gi.repository import Gtk
-class PanedExt(gtk.Paned):
- """Extended gtk.Paned (abstract)
+class PanedExt(Gtk.Paned):
+ """Extended Gtk.Paned (abstract)
set_snap1(int), set_snap2(int)
set minimum size of child widget
@@ -23,7 +23,7 @@
def on_position_change(self, w, scrolltype):
- if self.allocation[0] == -1:
+ if self.get_allocation().width == -1:
return False
pos = self.get_position()
@@ -48,14 +48,14 @@
return False
-class HPanedExt(gtk.HPaned, PanedExt):
+class HPanedExt(Gtk.HPaned, PanedExt):
def __init__(self):
- gtk.HPaned.__init__(self)
+ Gtk.HPaned.__init__(self)
PanedExt.__init__(self)
-class VPanedExt(gtk.VPaned, PanedExt):
+class VPanedExt(Gtk.VPaned, PanedExt):
def __init__(self):
- gtk.VPaned.__init__(self)
+ Gtk.VPaned.__init__(self)
PanedExt.__init__(self)