[pygobject] Override Gtk.Box.pack_start and pack_end to set default values to be compliant with pygtk
- From: Sebastian Polsterl <sebp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Override Gtk.Box.pack_start and pack_end to set default values to be compliant with pygtk
- Date: Mon, 17 Jan 2011 17:24:24 +0000 (UTC)
commit a8c727b9c4195d8085a45661683a18614ae84485
Author: Sebastian Pölsterl <sebp k-d-w org>
Date: Mon Jan 17 15:46:25 2011 +0100
Override Gtk.Box.pack_start and pack_end to set 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 efc3d33..82a7b91 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -1110,6 +1110,16 @@ class ScrolledWindow(Gtk.ScrolledWindow):
ScrolledWindow = override(ScrolledWindow)
__all__.append('ScrolledWindow')
+class Box(Gtk.Box):
+ def pack_start(self, child, expand=True, fill=True, padding=0):
+ super(Box, self).pack_start(child, expand, fill, padding)
+
+ def pack_end(self, child, expand=True, fill=True, padding=0):
+ super(Box, self).pack_end(child, expand, fill, padding)
+
+Box = override(Box)
+__all__.append('Box')
+
_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]