summaryrefslogtreecommitdiff
path: root/pygtkcompat
Commit message (Collapse)AuthorAgeFilesLines
* Remove all Python 2 Python codeChristoph Reiter2020-04-151-12/+3
|
* tests: more pygtkcompat coverageChristoph Reiter2019-02-161-22/+2
|
* Add meson build definitionsMathieu Duponchelle2018-04-201-0/+8
|
* Move all py2/3 compat code into gi._compatChristoph Reiter2018-04-071-18/+7
|
* tests: skip more getrefcount tests under PyPyChristoph Reiter2018-04-021-3/+8
|
* Remove autotools build systemChristoph Reiter2018-03-261-16/+0
|
* tests: Make patching in pygtkcompat reversibleChristoph Reiter2018-02-111-114/+159
| | | | | | | | Record all the attribute and sys.modules changes and add an API for reverting them after tests are completed. This allows us to run the pygtkcompat tests in the same test process as other tests.
* tests: Make test suite run with GTK+ 4Christoph Reiter2017-04-021-0/+3
| | | | | | | Skip various tests which test things that are no longer available with gtk4. Does not remove any deprecated overrides. Disable gtk4 support in pygtkcompat. The porting path over gtk3 should be enough.
* pygtkcompat: Allow multiple calls to enable(), enable_gtk() as long as the ↵Christoph Reiter2017-03-221-0/+42
| | | | | | | | | version matches enable_gtk() isn't idempotent and was breaking the API when called multiple times. This ignores the call in case the version passed is the same as for previous calls. https://bugzilla.gnome.org/show_bug.cgi?id=759009
* Fix new PEP8 errorsChristoph Reiter2017-01-091-0/+1
| | | | | | | | | Two new errors popped up: * E305 expected 2 blank lines after class or function definition * E741 ambiguous variable name https://bugzilla.gnome.org/show_bug.cgi?id=776009
* Update and deprecate gi.overrides.keysymsSimon Feltman2014-08-051-10/+4
| | | | | | | | Replace manually assigned keysyms with a dynamically generated version pulling names and values from Gdk via GI. Add a runtime warning when this module is imported. https://bugzilla.gnome.org/show_bug.cgi?id=721295
* Python 3.4 make check fixesSimon Feltman2014-05-261-1/+3
| | | | | | | | | Bump GI required version to 1.39.0. This is needed to get rid of expectedFailures which pass when built with 1.39.0 (unexpected successes fail unittesting in Python 3.4). Silence deprecation warning when using imp.reload. https://bugzilla.gnome.org/show_bug.cgi?id=730411
* PEP8 fixesSimon Feltman2014-05-021-2/+2
| | | | | | | | | Use infix 'not' instead of prefixed. Don't use double comments (##). Use space between comment and text. Un-comment tests that now work. Move broken (and won't fix) implicit int64 signal tests into a new skipped test function.
* Update Free Software Foundation addressesSimon Feltman2014-03-151-3/+1
| | | | | Update all references to the FSF physical address to use the web address: http://www.gnu.org/licenses
* Move gobject sub-module Python files into the main gi packageSimon Feltman2014-01-141-2/+2
| | | | | | | | | | This moves the signalhelper, propertyhelper, and constants Python modules from gi/_gobject into gi. Keep gi/_gobject/__init__.py around because it is still needed to maintain the "_PyGObject_API" exposed by pygobject.h. This allows external modules compiled with prior versions of PyGObject to continue working with newer versions. https://bugzilla.gnome.org/show_bug.cgi?id=712197
* pygtkcompat: Fix for missing methods on WindowsMartin Pitt2013-06-211-2/+8
| | | | | | | Deal with non-existing Gtk.Clipboard.get() and GdkPixbuf.Pixbuf.new_from_file_at_scale() methods. https://bugzilla.gnome.org/show_bug.cgi?id=702787
* pygtkcompat: Make gdk.Window.get_geometry return tuple of 5Simon Feltman2013-03-171-1/+7
| | | | | | | Make get_geometry return a tuple of (x, y, width, height, depth) as it did in pygtk 2. Update pygtkcompat.enable_gtk() to default to version 3.0 because version 2.0 core dumps trying to use introspection with gtk 2.
* pygtkcompat: Initialize hint to zero in set_geometry_hintsSimon Feltman2013-03-171-1/+1
|
* pygtkcompat: Add Widget.window, scroll_to_mark, and window methodsSimon Feltman2013-02-261-0/+14
| | | | | | | | | Fix gi.pygtkcompat attempting relative import in Python < 3.0. Add Gtk.Widget.window property which uses get_window() Add Gtk.TextView.scroll_to_mark with defaults Add Gtk.window_list_toplevels and Gtk.window_set_default_icon_name https://bugzilla.gnome.org/show_bug.cgi?id=694067
* pygtkcompat: Add Gtk.Window.set_geometry_hints which accepts keyword argumentsSimon Feltman2013-02-261-0/+44
| | | | | | | | Monkey patch a keyword argument version of set_geometry_hints onto Gtk.Window. This version is compatible with pygtk and takes keywords instead of a Gdk.Geometry and Gdk.GeometryMask. https://bugzilla.gnome.org/show_bug.cgi?id=694067
* generictreemodel: Fix bad default return type for get_column_typeSimon Feltman2013-02-201-1/+1
|
* pygtkcompat: Add pygtk compatible GenericTreeModel implementationSimon Feltman2013-02-183-0/+424
| | | | | | | | | | | | | | | | | | | Add Python implementation of the GenericTreeModel that was available in pygtk. The implementation attempts a better job than the original at ref counting by guaranteeing no leaks upon deletion of the model itself. Or by using the extra "node" argument to the row_deleted signal. The model is available in the pygtkcompat package directly as pygtkcompat.generictreemodel.GenericTreeModel or with as gtk.GenericTreeModel when pygtkcompat.enable_gtk() is set. Add file list and tree demos making use of GenericTreeModel to gtk-demo. Auto-expand gtk-demo app tree to give a better overview of the demos available. https://bugzilla.gnome.org/show_bug.cgi?id=682933
* pygtkcompat: Work around IndexError on large flagsMartin Pitt2012-11-291-1/+6
| | | | | | | | | | | | On 32 bit systems pygtkcompat currently fails with File "pygtkcompat/pygtkcompat.py", line 74, in _install_enums name = flag.value_names[-1].replace(modname + '_', '') IndexError: cannot fit 'int' into an index-sized integer on 32 bit systems as some flags in Gdk are too large to fit into a 32 bit "long". Work around this crash until this gets fixed properly (marked as FIXME).
* Move pygtkcompat into sibling package of giSimon Feltman2012-11-193-0/+536
Move the pygtkcompat module out of the gi package and into a sibling package as follows: pygobject/ gi/ pygtkcompat/ This allows for pygtkcompat to grow without affecting the gi package. Add deprecation message to gi/pygtkcompat.py https://bugzilla.gnome.org/show_bug.cgi?id=688219