| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
We work in srcdir != builddir fine now, no need to copy files around.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=655149
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=653484
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=652256
|
|
|
|
|
|
|
|
| |
gi_marshalling_tests_bytearray_full_return was broken; there
should be no g_strdup() going on here.
While we're at it, change the expected data to actually include
non-ASCII so we're testing something a bit more interesting.
|
|
|
|
| |
Array binds more tightly than deref.
|
| |
|
|
|
|
| |
We don't actually support nested container types in practice.
|
|
|
|
|
|
|
| |
Previously gjs supported only arrays of integers. Now that this
changed, we need tests to avoid regressions.
https://bugzilla.gnome.org/show_bug.cgi?id=646632
|
|
|
|
|
|
|
|
| |
Add some tests with parameters on either side of an out array length
parameter, to ensure that bindings that omit the length parameter
don't mess up any other parameters.
https://bugzilla.gnome.org/show_bug.cgi?id=651558
|
|
|
|
| |
See https://bugzilla.gnome.org/show_bug.cgi?id=644611
|
|
|
|
|
|
|
|
|
|
| |
We need to distinguish inline arrays inside structures, and arrays
that are pointers and annotations, and we can do it with
g_type_info_is_pointer(), setting it to FALSE for fixed size arrays.
As a side effect, (array fixed-size=N) on a pointer type has no longer
the expected result.
https://bugzilla.gnome.org/show_bug.cgi?id=646635
|
|
|
|
|
|
|
|
|
|
|
|
| |
g-ir-compiler assumes that an array is zero terminated when the
attribute is absent and there is no other attribute (length and
fixed-size), but g-ir-scanner only added the attribute when it is 0.
This means that an explicit zero-terminated=1 annotation would have
had no effect.
Fix that and at the same time ensure that all other arrays are not
zero-terminated by default.
https://bugzilla.gnome.org/show_bug.cgi?id=646635
|
|
|
|
|
|
| |
Based on a patch by Giovanni Campagna <gcampagna@src.gnome.org>
https://bugzilla.gnome.org/show_bug.cgi?id=646635
|
| |
|
|
|
|
|
|
| |
This is needed so we don't fail to parse gatomic.h from GLib.
https://bugzilla.gnome.org/show_bug.cgi?id=651548
|
|
|
|
|
|
|
| |
Functions that return floating GVariants must be marked (transfer
none).
https://bugzilla.gnome.org/show_bug.cgi?id=622344
|
| |
|
|
|
|
|
|
|
| |
Whilst doing the gjs patch, it turned out this was needed in order to
do a robust test suite - we really want to cover all bases here.
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
|
|
| |
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
|
|
|
|
|
|
| |
This was discussed in bug 649657.
https://bugzilla.gnome.org/show_bug.cgi?id=649657
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
|
|
|
|
|
|
| |
gjs has always supported zero-terminated arrays of strings, and
nothing else. Now that this changed, we need to test it.
https://bugzilla.gnome.org/show_bug.cgi?id=634253
|
|
|
|
|
|
|
| |
Some enumerations (like GVariantClass) use characters instead of
plain integers, so we need to recognize them.
https://bugzilla.gnome.org/show_bug.cgi?id=646635
|
|
|
|
|
|
|
| |
This way fields are no longer limited to basic types, and can be
supported without accessor methods.
https://bugzilla.gnome.org/show_bug.cgi?id=646635
|
| |
|
| |
|
|
|
|
|
|
| |
Also add a test case.
https://bugzilla.gnome.org/show_bug.cgi?id=640468
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Flags and enums with a GType have a value_nick and value_name
strings available in the class struct. But for flags and enums
without GType, we need to get this information from introspection.
g_base_info_get_name() gives the string for value_nick. In the GIR,
the attribute "c:identifier" is the string neede for value_name.
This patch adds the "c:identifier" from GIR to the typelib for all
flags and enum values. It can be retireved using
g_base_info_get_attribute(info, "c:identifier").
https://bugzilla.gnome.org/show_bug.cgi?id=642757
|
|
|
|
|
| |
This allows bindings to test the ability to clean up (in)
parameters after a GError is set by the wrapped function.
|
|
|
|
|
|
|
| |
Glib uses flag aliases, multiple flag names with the same int
value. For example G_IO_FLAG_MASK and G_IO_FLAG_GET_MASK. We need
these flag values to test that gi bindings don't assume that all
flags have the same value.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=641347
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=641347
|
| |
|
| |
|
|
|
|
| |
The cairo/ directory is searched for header files anyway.
|
|
|
|
|
|
| |
So methods such as gtk_drag_dest_set() can be put inside Gtk.Widget
https://bugzilla.gnome.org/show_bug.cgi?id=639945
|
|
|
|
|
| |
Preserve the section names and write them out on the class/record/
interface.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=561264
|
|
|
|
|
|
| |
So the element type has the correct is_pointer flag
https://bugzilla.gnome.org/show_bug.cgi?id=638929
|
|
|
|
|
| |
so we can test conflicts when two bases have a vfunc with the
same name.
|
| |
|
|
|
|
|
|
| |
handling in bindings.
https://bugzilla.gnome.org/show_bug.cgi?id=639834
|
|
|
|
|
|
| |
* guint8 can be interpreted as array characters that can be memcpyied
during marshalling so add a test to check if we are correctly handling
this codepath
|
|
|
|
|
|
|
|
| |
enums.
There was a bug in pygi in which non-gtype enums shared values between themselves.
That is, if there was an attribute Enum.THE_VALUE, it would be available on as OtherEnum.THE_VALUE as well.
To make a test case for this bug, we need a second non-gtype enum in GIMarshallingTests to compare with.
|
|
|
|
|
|
| |
A new test to expose a bug in pygobject
https://bugzilla.gnome.org/show_bug.cgi?id=638915
|
|
|
|
|
|
|
|
|
|
|
|
| |
Scanner tries to detect caller-allocates attribute automatically if
not explicitly specified by checking that parameter is not double-referenced
and is struct or union. This patch adds resolving of aliases when
checking whether parameter is struct or union.
Also removes old incorrect method transformer.follow_aliases, which
was never used in current code.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=639081
|