summaryrefslogtreecommitdiff
path: root/gi/overrides/Gtk.py
diff options
context:
space:
mode:
authorPaolo Borelli <pborelli@gnome.org>2011-01-16 12:16:31 +0100
committerPaolo Borelli <pborelli@gnome.org>2011-01-16 12:17:43 +0100
commitd0cbcc45366d40702c69cef207d3c0f361260c02 (patch)
treec9a0a0f93ce6a90bbe2c43eec861c11431fc31bf /gi/overrides/Gtk.py
parent6409d659326bf3cefdf6051379e8bc2031f16733 (diff)
downloadpygobject-d0cbcc45366d40702c69cef207d3c0f361260c02.tar.gz
Override Table.attach() to behave like pygtk
It is fairly common and even gtk itself still has attach_defaults.
Diffstat (limited to 'gi/overrides/Gtk.py')
-rw-r--r--gi/overrides/Gtk.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 545e1656..1db9025f 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -1097,6 +1097,9 @@ class Table(Gtk.Table, Container):
def __init__(self, rows=1, columns=1, homogeneous=False, **kwds):
Gtk.Table.__init__(self, n_rows=rows, n_columns=columns, homogeneous=homogeneous, **kwds)
+ def attach(self, child, left_attach, right_attach, top_attach, bottom_attach, xoptions=Gtk.AttachOptions.EXPAND|Gtk.AttachOptions.FILL, yoptions=Gtk.AttachOptions.EXPAND|Gtk.AttachOptions.FILL, xpadding=0, ypadding=0):
+ Gtk.Table.attach(self, child, left_attach, right_attach, top_attach, bottom_attach, xoptions, yoptions, xpadding, ypadding)
+
Table = override(Table)
__all__.append('Table')