summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* demo: Add TreeModel interface implementation demonstrationSimon Feltman2014-01-141-0/+143
| | | | | Add demo which shows how to implement the Gtk.TreeModel interfaces virtual methods.
* demo: Remove "Icon View" and "Tree View" directoriesSimon Feltman2014-01-147-1041/+0
|
* demo: Remove spaces from demo sub-directoriesSimon Feltman2014-01-147-0/+1041
| | | | | Move "Icon View" to IconView and "Tree View" to TreeView. This will help ability to package the demos in tarball releases in future versions.
* build: Remove _glib directory include from testhelper CFLAGSSimon Feltman2014-01-141-1/+1
|
* build: Set PLATFORM_VERSION again to 3.0Colin Walters2014-01-141-0/+2
| | | | | | | | | | We are installing headers to: /usr/include/pygobject-$(PLATFORM_VERSION)/pygobject.h If the variable isn't set, then things attempting to use pygobject obviously fail. This was a regression from a build system refactoring.
* Fix Python 2 build warning for module definitionsSimon Feltman2014-01-141-3/+2
| | | | | | Define PYGLIB_MODULE_ERROR_RETURN as NULL for both Python 2 and 3. This is needed now that the function signature created with PYGLIB_MODULE_START is consistent between the two versions.
* tests: Run PyFlakes and PEP8 only on SUBDIRSSimon Feltman2014-01-142-7/+20
| | | | | | | | Move PyFlakes and PEP8 checks into check-local of the root Makefile.am. Only run these tools on selective subdirs of top_srcdir. This fixes a problem where vpath build directories within the srcdir would contain links to the source files, causing these tools to run multiple times slowing down the check process.
* Remove _glib include path from gi module targetSimon Feltman2014-01-141-5/+2
|
* Move Python glib options module into gi packageSimon Feltman2014-01-148-47/+5
| | | | | | | Move gi/_glib/option.py into gi/_option.py. Remove gi/_glib since it is no longer needed. https://bugzilla.gnome.org/show_bug.cgi?id=712197
* Merge static PyGLib module into PyGISimon Feltman2014-01-1418-212/+40
| | | | | | | | | Remove gi._glib._glib as a separately compiled module. Move all C files into pygobject/gi. Remove compilation and use of libpyglib-gi-2.0-python.so as a shared dependency since we do not distribute header files for it. Remove unused threading macros. https://bugzilla.gnome.org/show_bug.cgi?id=712197
* Move gobject sub-module Python files into the main gi packageSimon Feltman2014-01-1416-87/+78
| | | | | | | | | | 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
* Merge gobject static code into the gi moduleSimon Feltman2014-01-1439-148/+93
| | | | | | | | Remove gi._gobject._gobject as a separately compiled static module and move all the files into gi._gi. Remove dead module initialization macros from "pyglib-python-compat.h" https://bugzilla.gnome.org/show_bug.cgi?id=712197
* tests: Fix test_torture_profile to return a number from its callbackSimon Feltman2014-01-141-1/+1
| | | | | | Return a number from rather than None from the callback passed to regress_test_torture_signature_2. This fixes a TypeError being raised in callback return argument marshaling which was ignored by the test suite.
* Add test for callback user data arguments with following argumentsMartin Pitt2014-01-141-0/+48
| | | | | In this case we can't use the varargs userdata handling. Provides test case for https://bugzilla.gnome.org/show_bug.cgi?id=722104.
* valgrind: Add suppression files for python3.3 and python3.3dmSimon Feltman2014-01-134-3/+945
| | | | | | Add new suppression files for Python 3. Use PYTHON_BASENAME for the suppression filename in the various make check.valgrind targets. Rename python.supp to python2.7.supp
* Makefile.am: Fix NEWS and ChangeLog generation under vpath buildsSimon Feltman2014-01-131-3/+3
| | | | | | | | Make sure NEWS generation uses top_srcdir to allow "make release-news" to work under a vpath build (directory outside the source tree). Update ChangeLog target to use $(top_srcdir)/missing. This fixes a problem where running "make dist" under a vpath build directory would include an empty ChangeLog.
* Update HACKING to include better release tagging instructionsSimon Feltman2014-01-131-7/+8
|
* configure.ac: post release version bump to 3.11.5Simon Feltman2014-01-132-1/+17
|
* Fix mid-argument list callback user data expecting a tuple3.11.4Simon Feltman2014-01-131-1/+15
| | | | | | | | Ensure user data arguments are always packed into a tuple during callback marshaling. This fixes cases where there is mid-argument user data which is not in the form of a variable length tuple. https://bugzilla.gnome.org/show_bug.cgi?id=722104
* Remove special case GObject base class check when creating GI classesSimon Feltman2014-01-091-6/+11
| | | | | | | | | | Replace explicit GObject.Object string name check when calculating the introspection class hierarchy with a more generalized technique. This allows any C based wrapper of a GType to "underride" an introspection class automatically. This currently only handles the case of GObject.Object, but will be used for fundamentals and GParamSpec. https://bugzilla.gnome.org/show_bug.cgi?id=631901
* overrides: Fix __repr__ for various Gdk structsSimon Feltman2014-01-073-7/+19
| | | | | | Change __repr__ overrides for Gdk.Color, Gdk.RGBA, and Gdk.Atom to return a string reprentation that is valid Python given an expected environment. See: http://docs.python.org/2/reference/datamodel.html#object.__repr__
* docs: Fix array length argument skipping with preceding out argumentsSimon Feltman2014-01-072-48/+27
| | | | | | | | | Remove split_function_info_args and use a list of all arguments for generating skipped index lists. Determine argument skipping based on the full argument list in each in/inout and out/inout argument list buildouts. This fixes a problem where out arguments preceding array length arguments would still show array length arguments in the docstring. This was due to an index mismatch when using split lists instead of list of all arguments.
* overrides: Remove GLib.Source.attachSimon Feltman2014-01-062-5/+7
| | | | | Remove GLib.Source.attach override now that tail end allow-none arguments default to None when not specified.
* overrides: Remove Gtk overrides with tail end allow-none keywordsSimon Feltman2014-01-062-16/+11
| | | | | | | Remove overrides for Widget.render_icon, TextIter.begins_tag, ends_tag, toggles_tag, and TreeModel.filter_new. These overrides added an optional keyword=None for allow-none arguments. This is now implicitly accepted by the PyGObject machinery so the overrides can go away.
* overrides: Remove Pango.Context.get_metricsSimon Feltman2014-01-062-9/+12
| | | | | | Remove the override for Pango.Context and the get_metrics method. This can be done now that tail end method arguments with "allow-none" are implicitly defaulted to use None/NULL.
* Add enum and flags member methodsSimon Feltman2014-01-062-0/+11
| | | | | | Add all methods from GIEnumInfo to both enums and flags classes. https://bugzilla.gnome.org/show_bug.cgi?id=693099
* python.m4: g/c JD_PYTHON_CHECK_VERSIONPatrick Welche2014-01-062-23/+4
| | | | | | | We currently require automake 1.11.1, and its AM_PYTHON_CHECK_VERSION is identical (made here). https://bugzilla.gnome.org/show_bug.cgi?id=721662
* Support union creation with PyGIStructSimon Feltman2014-01-042-5/+47
| | | | | | Add additional case for allowing the creation bare unions wrapped with PyGIStruct. This is needed because PyGIStruct wraps both GIStruct and GIUnion types.
* Fix crash in error handling when creating struct with mismatched info typeSimon Feltman2014-01-041-1/+1
| | | | | | Error handling code was attempting to get the PyType of a pointer to a pointer. Use the correct amount of indirection so an exception is raised as intended rather than a segfault.
* docs: Skip display of default constructor for disguised structsSimon Feltman2014-01-012-3/+24
| | | | | | | | Structs which have zero length should now show a default constructor. Structs with a length should not show keyword arguments in the default constructor. https://bugzilla.gnome.org/show_bug.cgi?id=708060
* Cleanup disguised struct constructor error and add it to boxedSimon Feltman2014-01-014-5/+19
| | | | | | | | Give a cleaner error message when an attempt is made to create a disguised struct which also gives a hint to look at the pydoc. Add similar error to disguised boxed/unions. https://bugzilla.gnome.org/show_bug.cgi?id=647249
* docs: List default constructor in doc stringsSimon Feltman2014-01-011-6/+4
| | | | | | | Add default constructor to class docs strings as: Object(**properties) https://bugzilla.gnome.org/show_bug.cgi?id=708060
* docs: List constructors in object and struct doc stringsSimon Feltman2014-01-013-7/+46
| | | | | | | | | | | | | | | | | | | Add type dispatching to gi.docstring documentation generator for info types of StructInfo and ObjectInfo. Add lazy doc string generation to Object and Struct meta classes by using a property for __doc__. This lists available constructors immediately in all GObject.Object and Struct docs. ipython example: >>> Gtk.Button? :Constructors: Button(**properties) new() new_from_icon_name(icon_name:str, size:int) new_from_stock(stock_id:str) new_with_label(label:str) new_with_mnemonic(label:str) https://bugzilla.gnome.org/show_bug.cgi?id=708060
* docs: Cleanup PyGIBaseInfo reprSimon Feltman2014-01-011-3/+2
| | | | | Remove angle brackets and pointer address from PyGIBaseInfo.__repr__. This cleans up documentation and makes it easier to read.
* docs: Add return values and skip implicit out arguments in functionsSimon Feltman2013-12-313-5/+34
| | | | | | | | Add gi.CallableInfo.skip_return static binding for testing if the return value should show up in docs. Skip implicit list index arguments for out values. https://bugzilla.gnome.org/show_bug.cgi?id=697356
* docs: Replace usage of functools.wraps with a custom versionSimon Feltman2013-12-312-11/+13
| | | | | | | | | | | Using functools.wraps in overrides would cause docstring evaluation which can hurt performance during overrides loading. Add custom wraps decorator which only copies __name__ and __module__ attributes. Remove function wrapping used within gi.overrides.overridefunc because the wrapping was not doing anything, this preserves __doc__ ability without causing an eval at load time. https://bugzilla.gnome.org/show_bug.cgi?id=697356
* docs: Move GIArgInfo.get_pytype_hint into gi.docstringSimon Feltman2013-12-316-116/+52
| | | | | | | | | Move the C implementation of pytype hinting into pure Python. Now that doc strings are lazily evaluated we can simplify this tedious bit of C code with Python. This is precursory work for getting return types into function doc strings. https://bugzilla.gnome.org/show_bug.cgi?id=697356
* docs: Skip implicit array length args when building function doc stringsSimon Feltman2013-12-312-2/+10
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=697356
* gtk-demo: Avoid crash in CSS demosSimon Feltman2013-12-312-16/+46
| | | | | | | | | Avoid a potential crash in the CSS demos where the text editing buffer is out of sync with the last good CSS parsing buffer. In the case of CSS warnings, we get a parsing-error callback but no exception is raised. This would cause the buffers to become out of sync and accessing position information from the parsing-error section would crash the text editor due to an out of range iterator being created.
* gtk-demo: Add info bar and better error handling to CSS demosSimon Feltman2013-12-312-14/+43
| | | | | | | | Use an info bar for displaying CSS parsing errors. Store the last good stylesheet text for use as a backup when a parsing error occures. This gives a seamless look while typing changes into the text editor. https://bugzilla.gnome.org/show_bug.cgi?id=719722
* gtk-demo: Add CSS demosGian Mario Tagliaretti2013-12-3115-1/+723
| | | | | | | | | | Add a couple of demos demostrating the use of CSS, the css files are stored into a GResource binary file compiled with glib-compile-resources, the comments in gtk-demo.py explain the usage of GResource. Signed-off-by: Simon Feltman <sfeltman@src.gnome.org> https://bugzilla.gnome.org/show_bug.cgi?id=719722
* build: Avoid clash between gi/types.py and stdlibColin Watson2013-12-272-18/+26
| | | | | | | | | | Use non-recursive make for the Python modules in gi/ to work around a clash between gi/types.py and the standard library's types module when running py-compile. https://bugzilla.gnome.org/show_bug.cgi?id=721025 Signed-off-by: Martin Pitt <martinpitt@gnome.org>
* configure.ac: post-release bump to 3.11.4Simon Feltman2013-12-161-1/+1
|
* release 3.11.3Simon Feltman2013-12-161-0/+4
|
* Replace usage of PyGIBoxed_Type with PyGIStruct_Type3.11.3Simon Feltman2013-12-131-12/+1
| | | | | | | | | | | | Remove empty definition of PyGIBoxed_Type and use PyGIStruct_Type in its place for GI_INFO_TYPE_BOXED based infos in repositories. As noted in the docs: "GI_INFO_TYPE_BOXED boxed, see GIStructInfo or GIUnionInfo" we can use the GIStructInfo API for boxed types because we also dispatch base classes on GType checks as seen in: https://git.gnome.org/browse/pygobject/tree/gi/module.py?id=3.11.2#n186 This fixes some of the issues noted in bug 581525. https://bugzilla.gnome.org/show_bug.cgi?id=581525
* configure.ac: post release version bump to 3.11.3Simon Feltman2013-11-171-1/+1
|
* release 3.11.2Simon Feltman2013-11-171-0/+6
|
* gtk-demo: Fix pyflakes error after recent commit3.11.2Simon Feltman2013-11-121-1/+1
|
* gkt-demo: Change main info/source notebook into a GtkStackSimon Feltman2013-11-121-6/+17
| | | | | | 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.
* gtk-demo: Cleanup deprecated calls throughout demo codeSimon Feltman2013-11-1217-90/+64
| | | | | | 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.