GNOME Bugzilla – Bug 672045
Add Gtk.Arrow/Gtk.Window constructor override
Last modified: 2012-03-15 18:19:24 UTC
Adds argument that makes them compatible with PyGTK.
Created attachment 209704 [details] [review] Add Gtk.Arrow/Gtk.Window constructor override
Do the arrow arguments need to be optional for pygtk compat? gtk_arrow_new() requires actual values. The GObject constructor already provides named arguments, so if that's only for providing positional arguments I'd add an assertion that they are not None.
You're right, I overwsaw that. It's easier to just remove the default values.
Created attachment 209708 [details] [review] Add Gtk.Arrow/Gtk.Window constructor override Adds argument that makes them compatible with PyGTK.
Comment on attachment 209708 [details] [review] Add Gtk.Arrow/Gtk.Window constructor override Thanks! That looks fine, please commit.
Ideally you'd add testcases to test_overrides.py :)
Comment on attachment 209708 [details] [review] Add Gtk.Arrow/Gtk.Window constructor override Johan pushed this patch. However, it broke a test: ====================================================================== FAIL: test_inheritance (test_overrides.TestGtk) ---------------------------------------------------------------------- Traceback (most recent call last):
+ Trace 229881
"%r does not inherit from override %r" % (klass, over,))
Johan, can you please fix this? Thanks!
This regression is fixed in bug 672158