| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
| |
Re-organize hash table arg cache and its marshaling by moving all
related code fragments into an isolated file where most of it is made
static. pygi-hashtable.h exposes a single function:
pygi_arg_hash_table_new_from_info. This is all the caching system needs to
produce the proper bits for handling hash table marshaling.
https://bugzilla.gnome.org/show_bug.cgi?id=709700
|
|
|
|
|
|
|
|
|
|
|
| |
Move PyGIArgCache and PyGIInterfaceCache generic setup into standalone
functions: pygi_arg_base_setup and pygi_arg_interface_setup respectively.
Shift argument order and move arguments which will eventually be removed
from the signature into the tail with comment. Isolate special casing for
GI_INFO_TYPE_CALLBACK ArgCache creation to a single location in
_arg_cache_new_for_interface.
https://bugzilla.gnome.org/show_bug.cgi?id=709700
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=722899
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=722899
|
|
|
|
|
|
|
|
|
| |
Rename GIObjectMeta to GObjectMeta reverting it to its original name prior
to commit https://git.gnome.org/browse/pygobject/commit/?id=2624bd2b
That change could have been considered an API break for anyone deriving from
gi.types.GObjectMeta since it is essentially public API. Rename base meta
class to _GObjectMetaBase which was previously gi._gobject before
commit 2624bd2b (private API).
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=721646
|
|
|
|
|
|
| |
Add test showing memory problems with sub-classes of GLib.Source.
https://bugzilla.gnome.org/show_bug.cgi?id=722387
|
|
|
|
|
|
|
|
| |
Ensure we add a new reference to sub-modules added to gi._gi. This may
have caused GC errors upon exiting the Python process since a reference was
shared by sys.modules and gi._gi.
https://bugzilla.gnome.org/show_bug.cgi?id=722274
|
|
|
|
|
| |
Add demo which shows how to implement the Gtk.TreeModel interfaces virtual
methods.
|
| |
|
|
|
|
|
| |
Move "Icon View" to IconView and "Tree View" to TreeView. This will help
ability to package the demos in tarball releases in future versions.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
In this case we can't use the varargs userdata handling. Provides test case for
https://bugzilla.gnome.org/show_bug.cgi?id=722104.
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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__
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Remove GLib.Source.attach override now that tail end allow-none arguments
default to None when not specified.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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 all methods from GIEnumInfo to both enums and flags classes.
https://bugzilla.gnome.org/show_bug.cgi?id=693099
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Add additional case for allowing the creation bare unions wrapped with
PyGIStruct. This is needed because PyGIStruct wraps both GIStruct and
GIUnion types.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Add default constructor to class docs strings as:
Object(**properties)
https://bugzilla.gnome.org/show_bug.cgi?id=708060
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Remove angle brackets and pointer address from PyGIBaseInfo.__repr__. This
cleans up documentation and makes it easier to read.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=697356
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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>
|