[pygobject] Override Gtk.Paned pack1 and pack2 to add default values to be compliant with pygtk



commit 1dec12826753756fcadefc8ef8c756fc902c320b
Author: Sebastian Pölsterl <sebp k-d-w org>
Date:   Mon Jan 17 15:54:32 2011 +0100

    Override Gtk.Paned pack1 and pack2 to add default values to be compliant with pygtk

 gi/overrides/Gtk.py |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 82a7b91..cd5a506 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -1120,6 +1120,16 @@ class Box(Gtk.Box):
 Box = override(Box)
 __all__.append('Box')
 
+class Paned(Gtk.Paned):
+    def pack1(self, child, resize=False, shrink=True):
+        super(Paned, self).pack1(child, resize, shrink)
+
+    def pack2(self, child, resize=True, shrink=True):
+        super(Paned, self).pack2(child, resize, shrink)
+
+Paned = override(Paned)
+__all__.append('Paned')
+
 _Gtk_main_quit = Gtk.main_quit
 @override(Gtk.main_quit)
 def main_quit(*args):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]