diff options
author | Paolo Borelli <pborelli@gnome.org> | 2011-01-16 12:16:31 +0100 |
---|---|---|
committer | Paolo Borelli <pborelli@gnome.org> | 2011-01-16 12:17:43 +0100 |
commit | d0cbcc45366d40702c69cef207d3c0f361260c02 (patch) | |
tree | c9a0a0f93ce6a90bbe2c43eec861c11431fc31bf /gi/overrides/Gtk.py | |
parent | 6409d659326bf3cefdf6051379e8bc2031f16733 (diff) | |
download | pygobject-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.py | 3 |
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') |