commit d1314af8f237a634dbfefb0a1c319f910d3d8765 Author: Simon Feltman Date: Sun Nov 17 20:04:49 2013 -0800 release 3.11.2 NEWS | 6 ++++++ 1 file changed, 6 insertions(+) commit 6fc3d977f17397e514aed492055e93d03c410f60 Author: Simon Feltman Date: Tue Nov 12 23:04:50 2013 -0800 gtk-demo: Fix pyflakes error after recent commit demos/gtk-demo/demos/pixbuf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) commit a309b3baf5ee99139cc2d1817339233e24391bc2 Author: Simon Feltman Date: Tue Nov 12 18:41:35 2013 -0800 gkt-demo: Change main info/source notebook into a GtkStack Use the new in 3.10 GtkStack and GtkStackSwitcher for switching between Info and Source tabs. Beyond giving a newer look and feel to the demo, this also provides an example for how to use a GtkStack. demos/gtk-demo/gtk-demo.py | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) commit 69ff43bf6292fb3ddaea027cfc595139c4f1655d Author: Simon Feltman Date: Tue Nov 12 19:32:18 2013 -0800 gtk-demo: Cleanup deprecated calls throughout demo code Specify constructor arguments as keyword args for various object creation calls. Update combobox demo to use bind_property instead of manual signal connections with update callbacks. demos/gtk-demo/demos/Entry/entry_buffer.py | 6 ++--- demos/gtk-demo/demos/Entry/entry_completion.py | 6 ++--- demos/gtk-demo/demos/Entry/search_entry.py | 8 +++--- demos/gtk-demo/demos/Tree View/liststore.py | 8 +++--- .../gtk-demo/demos/Tree View/treemodel_filelist.py | 2 +- .../gtk-demo/demos/Tree View/treemodel_filetree.py | 2 +- demos/gtk-demo/demos/appwindow.py | 4 +-- demos/gtk-demo/demos/combobox.py | 30 +++------------------- demos/gtk-demo/demos/dialogs.py | 26 +++++++++---------- demos/gtk-demo/demos/expander.py | 9 +++---- demos/gtk-demo/demos/images.py | 2 +- demos/gtk-demo/demos/infobars.py | 23 +++++++++-------- demos/gtk-demo/demos/links.py | 10 ++++---- demos/gtk-demo/demos/menus.py | 4 +-- demos/gtk-demo/demos/pickers.py | 8 +++--- demos/gtk-demo/demos/pixbuf.py | 4 +-- demos/gtk-demo/demos/rotatedtext.py | 2 +- 17 files changed, 64 insertions(+), 90 deletions(-) commit 890fb7b97823985d5c800284ead43a49174db244 Author: Simon Feltman Date: Tue Nov 12 18:19:34 2013 -0800 Revert TreeStore and ListStore initializer replacements Revert changes to Tree/ListStore where the __init__ overrides were replaced with __new__ overrides which accept column types directly. The issue with the change is sub-classes of these types can override __init__ themself passing in their own column types to the super class. These sub-classes expect the super class to handle column type setup via __init__ and hence the change described is an API break. This reverts parts of commit: 2f2069c9efcd8f312ce9ffa572df371fbc08822d gi/overrides/Gtk.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) commit 795201873a3aae530598f5e16470b6a8d2d55c23 Author: Simon Feltman Date: Thu Aug 15 20:01:48 2013 -0700 Deprecate Gdk.Cursor constructor dispatching Give deprecation warning for the overridden __new__ method on Gdk.Cursor when more than one argument is used. Recommend using Gdk.Cursor.new_for_display, new_from_pixbuf, and new_from_pixmap instead. https://bugzilla.gnome.org/show_bug.cgi?id=705810 gi/overrides/Gdk.py | 48 ++++++++++++++++++++++++++------------------- tests/test_overrides_gdk.py | 17 ++++++++++++---- 2 files changed, 41 insertions(+), 24 deletions(-) commit 2f2069c9efcd8f312ce9ffa572df371fbc08822d Author: Simon Feltman Date: Thu Aug 15 19:23:18 2013 -0700 Cleanup overzealous new and init implementations Remove PyGObject initializer code attempting to set properties on GObjects that have already been created. There were a number of overridden __new__ and __init__ methods that stripped away arguments before calling the base class to work around attempted property sets and argument count errors (fixing the symptom not the problem). Use Gtk.ListStore/TreeStore.new with __new__ override instead of __init__ with set_column_types. https://bugzilla.gnome.org/show_bug.cgi?id=705810 gi/_gobject/gobjectmodule.c | 35 ++++++++++++++--------------------- gi/_gobject/pygobject.c | 16 ++++++++++++++-- gi/overrides/GObject.py | 3 --- gi/overrides/Gdk.py | 15 --------------- gi/overrides/Gtk.py | 11 ++++------- gi/overrides/Pango.py | 5 ----- gi/pygi-boxed.c | 6 ------ 7 files changed, 32 insertions(+), 59 deletions(-) commit 86a37d67455dc5d435ade35f17b27c5de2b288f5 Author: Simon Feltman Date: Tue Aug 13 18:02:54 2013 -0700 Add deprecation warnings and cleanup class initializer overrides Print deprecation warnings for calls to class initializers which don't explicitly specify keywords. Print deprecation warning for overrides that have renamed keywords (Gtk.Table.rows should be n_rows). Additionally deprecate non-standard defaults with initializers (Gtk.SizeGroup.mode defaults to HORIZONTAL in GTK+ and VERTICAL in PyGI). Remove AboutDialog override because it doesn't do anything. https://bugzilla.gnome.org/show_bug.cgi?id=705810 gi/overrides/Gio.py | 6 +- gi/overrides/Gtk.py | 367 ++++++++++++++++++++++---------------------- gi/overrides/__init__.py | 88 +++++++++++ tests/test_gi.py | 75 +++++++++ tests/test_overrides_gtk.py | 95 ++++++++---- 5 files changed, 411 insertions(+), 220 deletions(-) commit d2e9be8e2b3d21b55e1aad3d0b22dcff3421b702 Author: Simon Feltman Date: Tue Aug 13 17:42:11 2013 -0700 tests: Use explicit keywords args when calling initializers Replace all usage of GObject creation that relies on positional arguments from overrides. Positional initializer args will be deprecated, updating the tests as a first pass proves backwards and forwards compatibility of the deprecation. https://bugzilla.gnome.org/show_bug.cgi?id=705810 tests/test_overrides_gtk.py | 107 +++++++++++++++++++++++--------------------- 1 file changed, 55 insertions(+), 52 deletions(-) commit 8342302dac9bf3fcb49ec3ac334dbf014b4db025 Author: Simon Feltman Date: Tue Nov 12 03:46:08 2013 -0800 Revert "Add type checking to positional Gtk.Box and Gtk.Window ctor arguments" This reverts commit 7193f0509a0ed7da7c810daa6733e34a22db3180. gi/overrides/Gtk.py | 7 ------- tests/test_overrides_gtk.py | 18 ------------------ tests/test_properties.py | 9 --------- 3 files changed, 34 deletions(-) commit 1f37340c4623262a2146ec8cd25b487cdf4234bd Author: Simon Feltman Date: Sun Nov 10 03:26:10 2013 -0800 Fix dir method for static GParamSpec in Python 3 Add a __dir__ method which lists GParamSpec attributes and remove code from getattr which made use of the deprecated __members__ technique for dir (removed in Python 3). This makes dir(pspec) work again in Python 3. gi/_gobject/pygparamspec.c | 218 ++++++++++++++++++++++++--------------------- tests/test_gi.py | 10 +++ 2 files changed, 126 insertions(+), 102 deletions(-) commit 7193f0509a0ed7da7c810daa6733e34a22db3180 Author: Martin Pitt Date: Tue Nov 5 15:28:12 2013 +0100 Add type checking to positional Gtk.Box and Gtk.Window ctor arguments Gtk.Box and Gtk.Window are base classes of a lot of widgets. Avoid confusion when trying to create a subclass of them through the GObject constructor with positional arguments by at least verifying that their type is right. Otherwise you can do things like chooser = Gtk.FileChooserWidget(Gtk.FileChooserAction.SELECT_FOLDER) which succeeds, but does not have the desired effect (it sets the "homogenous" property of the Gtk.Box superclass instead). https://bugzilla.gnome.org/show_bug.cgi?id=711487 gi/overrides/Gtk.py | 7 +++++++ tests/test_overrides_gtk.py | 18 ++++++++++++++++++ tests/test_properties.py | 9 +++++++++ 3 files changed, 34 insertions(+) commit 79aea2655db11bc9d2c0ad75c87862b2b66da594 Author: Simon Feltman Date: Mon Nov 4 03:29:57 2013 -0800 Remove overzealous argument checking for callback userdata Remove check which ensures userdata is None if the callback is None. This check would need to become more complicated with recent versions of PyGObject where userdata can be variable (would also need to check against a tuple containing None). Instead of adding more complex checking, simply remove the checking as it is unnecessary to begin with. https://bugzilla.gnome.org/show_bug.cgi?id=711173 gi/pygi-marshal-from-py.c | 7 ------- tests/test_overrides_gtk.py | 11 +++++++---- 2 files changed, 7 insertions(+), 11 deletions(-) commit f32d649b72f865e32cc2b62a54d927b8345da0c8 Author: Martin Pitt Date: Mon Oct 28 16:00:57 2013 +0100 configure.ac: post-release bump to 3.11.2 configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)