platform/upstream/gobject-introspection.git
13 years agoscanner: Remove some dead debugging code
Colin Walters [Tue, 30 Aug 2011 01:58:31 +0000 (21:58 -0400)]
scanner: Remove some dead debugging code

13 years agoFix warning for missing (element-type)
Colin Walters [Tue, 30 Aug 2011 01:51:34 +0000 (21:51 -0400)]
Fix warning for missing (element-type)

While looking for a different bug, I noticed that the introspectable
pass lists was missing GSList.  And the warning was never set up
to fire anyways.  Fix it and add a test.

13 years agoAdd make-check-passed to gitignore
Johan Dahlin [Mon, 29 Aug 2011 12:07:39 +0000 (09:07 -0300)]
Add make-check-passed to gitignore

13 years agoUse INTROSPECTION_SCANNER_ENV in Makefile.introspection
Johan Dahlin [Mon, 29 Aug 2011 12:07:17 +0000 (09:07 -0300)]
Use INTROSPECTION_SCANNER_ENV in Makefile.introspection

13 years agoAdd a make-check check to pre-commit hook
Johan Dahlin [Mon, 29 Aug 2011 08:55:26 +0000 (05:55 -0300)]
Add a make-check check to pre-commit hook

13 years agoAvoid most of the special-casing of GObject.Object in the scanner
Pavel Holejsovsky [Sun, 28 Aug 2011 09:44:52 +0000 (11:44 +0200)]
Avoid most of the special-casing of GObject.Object in the scanner

There were some cases of handling GObject and GInitiallyUnowned which
were not necessary.  Removing special cases from them simplified code
and as a bonus it added 'GObject::notify' signal into GIR, which was
not there previously.

https://bugzilla.gnome.org/show_bug.cgi?id=657446

13 years agoadd regression test for skipped #define
Xavier Claessens [Thu, 16 Jun 2011 10:36:28 +0000 (12:36 +0200)]
add regression test for skipped #define

13 years agoAdd a regress test for a method returning GPtrArray
Xavier Claessens [Tue, 2 Aug 2011 10:03:57 +0000 (12:03 +0200)]
Add a regress test for a method returning GPtrArray

13 years agoRevert "xlib: fix the type of XID"
Giovanni Campagna [Fri, 26 Aug 2011 14:47:02 +0000 (16:47 +0200)]
Revert "xlib: fix the type of XID"

This reverts commit 3553cd0a4631f1b57fb608e3f3f78a1a0cfd602a.

Turns out it was wrong, XID is 64 bit on a 64 bit system. Plus
the scanner doesn't like multiple level typedefs.

13 years agoxlib: fix the type of XID
Giovanni Campagna [Tue, 1 Mar 2011 21:33:20 +0000 (22:33 +0100)]
xlib: fix the type of XID

XIDs are CARD32, which corresponds to guint32 on all platform, not
gulong (which is 64 bit on x86_64). Fix that, and use alias indirection
to more accurately reflect the typedefs.

https://bugzilla.gnome.org/show_bug.cgi?id=643620

13 years agoconfigure.ac: Do not generate template files
Javier Jardón [Fri, 26 Aug 2011 11:38:45 +0000 (12:38 +0100)]
configure.ac: Do not generate template files

It's not needed as the project uses inline comments
for documentation.

13 years agoconfigure.ac: Generate xz tarball with ustar format by default
Javier Jardón [Fri, 26 Aug 2011 11:15:40 +0000 (12:15 +0100)]
configure.ac: Generate xz tarball with ustar format by default

13 years agoUpdate autotools configuration
Javier Jardón [Fri, 26 Aug 2011 11:14:20 +0000 (12:14 +0100)]
Update autotools configuration

Replace deprecated autoconf macros
Use new libtool syntax

13 years agoautogen.sh: Use autoreconf instead custom script
Javier Jardón [Sun, 19 Jun 2011 21:16:12 +0000 (22:16 +0100)]
autogen.sh: Use autoreconf instead custom script

13 years agoFix g_irepository_find_by_gtype() for GDK_TYPE_RECTANGLE
Pavel Holejsovsky [Fri, 19 Aug 2011 19:20:10 +0000 (21:20 +0200)]
Fix g_irepository_find_by_gtype() for GDK_TYPE_RECTANGLE

Complement fix for g-ir-scanner which converts every GdkRectangle
gtype to CairoRectangleInt.  Make sure that C-side API is also aware
of this workaround.

Use case requiring this patch:

When binding implementation wants to get/set property, it can use either
GI-based approach (g_property_info_xxx() funcs), or just GLib facilities.
Although former is probably preferred, there are cases when latter is still
needed (e.g. gstreamer uses dynamic properties, which are not present in the
gir).  In this case, binding implementation queries the type of the propertyb
(using g_object_class_find_property()), it gets GDK_TYPE_RECTANGLE,
and without the patch it cannot map it to any known type.

https://bugzilla.gnome.org/show_bug.cgi?id=655423

13 years agoProperly handle GParamSpec and descendants
Pavel Holejsovsky [Sat, 13 Aug 2011 11:10:53 +0000 (13:10 +0200)]
Properly handle GParamSpec and descendants

GParamSpec is introspected as fundamental class, and all GObject
classes derived from it (e.g. GParamSpecChar) are marked as such.

https://bugzilla.gnome.org/show_bug.cgi?id=656440

13 years agoUpdate annotations from glib git 2cd3c200687751c9cc26774f650b7651bffcc598
Jasper St. Pierre [Wed, 24 Aug 2011 17:29:04 +0000 (13:29 -0400)]
Update annotations from glib git 2cd3c200687751c9cc26774f650b7651bffcc598

13 years agoRemove MAINTAINERS and add DOAP
Jasper St. Pierre [Wed, 24 Aug 2011 17:53:59 +0000 (13:53 -0400)]
Remove MAINTAINERS and add DOAP

13 years agoadd back the fixed_array_out_struct test
John (J5) Palmieri [Tue, 23 Aug 2011 18:17:54 +0000 (14:17 -0400)]
add back the fixed_array_out_struct test

13 years agotests: build tests only on make check
Alexandre Rostovtsev [Mon, 22 Aug 2011 06:49:51 +0000 (02:49 -0400)]
tests: build tests only on make check

Use automake's check_ prefix and avoid putting anything nontrivial in
BUILT_SOURCES so that tests are build only on make check.

The dummy -rpath in AM_LDFLAGS in tests/scanner/Makefile.am is needed to
force libtool to build shared libraries for check_LTLIBRARIESS targets
(automake builds check_LTLIBRARIES as static by default); see
http://lists.gnu.org/archive/html/automake/2005-10/msg00107.html

https://bugzilla.gnome.org/show_bug.cgi?id=657066

13 years agodoctool: Disable tests for now
Colin Walters [Tue, 23 Aug 2011 13:35:51 +0000 (09:35 -0400)]
doctool: Disable tests for now

They don't work for multiple reasons, and there is still debate
about how the formatting etc. will work.

13 years agodocbookdescription.py: Fix for PEP-8 compliance
Colin Walters [Mon, 22 Aug 2011 18:55:41 +0000 (14:55 -0400)]
docbookdescription.py: Fix for PEP-8 compliance

13 years agoUpdate annotations from glib git d51e0615f9a6c1aa1898c46f2cf3135ca5ccd463
Colin Walters [Mon, 22 Aug 2011 18:28:03 +0000 (14:28 -0400)]
Update annotations from glib git d51e0615f9a6c1aa1898c46f2cf3135ca5ccd463

13 years agoAdd 'Since:' tags to the newly added GIEnumInfo methods
Torsten Schönfeld [Thu, 18 Aug 2011 20:51:57 +0000 (22:51 +0200)]
Add 'Since:' tags to the newly added GIEnumInfo methods

13 years agoRegenerate Gio/GLib/GObject annotations
Martin Pitt [Thu, 18 Aug 2011 15:39:32 +0000 (17:39 +0200)]
Regenerate Gio/GLib/GObject annotations

Ran misc/update-glib-annotations.py against current glib master.

13 years agoAdd tests for newly added warnings
Giovanni Campagna [Thu, 18 Aug 2011 15:29:21 +0000 (17:29 +0200)]
Add tests for newly added warnings

g-ir-scanner now warns for invalid (element-type) annotations
in GPtrArray and in GByteArray. Test that.

13 years agotests/doctool: Remove MALLARD_DIRS from BUILT_SOURCES
Tomeu Vizoso [Thu, 18 Aug 2011 15:18:31 +0000 (17:18 +0200)]
tests/doctool: Remove MALLARD_DIRS from BUILT_SOURCES

so we don't generate the test docs when doing a plain build

13 years agoDisallow non byte types for GByteArrays
Giovanni Campagna [Sat, 2 Jul 2011 14:04:17 +0000 (16:04 +0200)]
Disallow non byte types for GByteArrays

Similarly to GPtrArrays, GByteArrays can only contain bytes. Emit
a warning if an inconsistent (element-type) is placed, and ensure
that the default is guint8 if nothing is added. This way bindings
can support GByteArrays without special casing them.

https://bugzilla.gnome.org/show_bug.cgi?id=652753

13 years agoForbid GPtrArrays holding non-pointer types
Giovanni Campagna [Sat, 2 Jul 2011 13:31:38 +0000 (15:31 +0200)]
Forbid GPtrArrays holding non-pointer types

It should be safe for bindings to assume that GPtrArrays hold only
pointers (or values as big as it), so there is no need to go through
hoops for converting smaller integers when marshalling.
Libraries that need arrays of integers should use GArray.

https://bugzilla.gnome.org/show_bug.cgi?id=652753

13 years agoDocbookwriter: signal flags
Laszlo Pandy [Wed, 17 Aug 2011 07:38:24 +0000 (09:38 +0200)]
Docbookwriter: signal flags

13 years agoIn DocBookWriter, remove DocBookEntity and just use the ast nodes directly.
Laszlo Pandy [Wed, 17 Aug 2011 06:55:05 +0000 (08:55 +0200)]
In DocBookWriter, remove DocBookEntity and just use the ast nodes directly.

13 years agoFor docbook, make the id attributes the same regardless of language. Only user visibl...
Laszlo Pandy [Tue, 16 Aug 2011 18:01:39 +0000 (20:01 +0200)]
For docbook, make the id attributes the same regardless of language. Only user visible strings should change between C and Python.

13 years agoDescriptions support for docbook writer.
Laszlo Pandy [Sun, 14 Aug 2011 09:51:04 +0000 (11:51 +0200)]
Descriptions support for docbook writer.
Includes support for escaping (but not double escaping) entities and CDATA sections.

Add descriptions from GIR to docbook writer.

13 years agoAllow enums and bitfields to have static methods
Torsten Schönfeld [Sat, 13 Aug 2011 15:28:30 +0000 (17:28 +0200)]
Allow enums and bitfields to have static methods

This uses the same backcompat machinery that was introduced for static
methods for non-class types, so this change does not break users of the
existing presentations.

New libgirepository API:

    g_enum_info_get_n_methods
    g_enum_info_get_method

https://bugzilla.gnome.org/show_bug.cgi?id=656499

13 years agoTeach scanner's girparser about fundamentals
Pavel Holejsovsky [Sat, 13 Aug 2011 11:10:34 +0000 (13:10 +0200)]
Teach scanner's girparser about fundamentals

Make sure that fundamental attribute and associated
functions (ref-func, unref-func, set-value-func and get-value-func)
are parsed, otherwise we fail reparse-validating girs containing
fundamentals.

13 years agogiscanner: Allow passing additional include dirs when parsing a gir
Tomeu Vizoso [Mon, 15 Aug 2011 15:45:09 +0000 (17:45 +0200)]
giscanner: Allow passing additional include dirs when parsing a gir

13 years agotests/doctools: Properly clean the temporary mallard files
Tomeu Vizoso [Mon, 15 Aug 2011 14:54:13 +0000 (16:54 +0200)]
tests/doctools: Properly clean the temporary mallard files

13 years agotests/doctool: Update the -expected dirs
Tomeu Vizoso [Mon, 15 Aug 2011 14:44:14 +0000 (16:44 +0200)]
tests/doctool: Update the -expected dirs

13 years agotests/doctool: Make sure we regenerate the mallard code when testing
Tomeu Vizoso [Mon, 15 Aug 2011 14:34:23 +0000 (16:34 +0200)]
tests/doctool: Make sure we regenerate the mallard code when testing

13 years ago[doctools] use 'or' instead of 'and' when checking for func or constructor
John (J5) Palmieri [Mon, 15 Aug 2011 14:41:50 +0000 (10:41 -0400)]
[doctools] use 'or' instead of 'and' when checking for func or constructor

13 years agotreat constructors like methods when generating the label
John (J5) Palmieri [Mon, 15 Aug 2011 14:33:06 +0000 (10:33 -0400)]
treat constructors like methods when generating the label

13 years ago[doctool] use different templates for method vs. function output
John (J5) Palmieri [Mon, 15 Aug 2011 14:19:41 +0000 (10:19 -0400)]
[doctool] use different templates for method vs. function output

13 years agoconfigure.ac: Change to tar-ustar because PAX gives problems in OpenBSD
Tomeu Vizoso [Mon, 15 Aug 2011 14:01:18 +0000 (16:01 +0200)]
configure.ac: Change to tar-ustar because PAX gives problems in OpenBSD

Also, it's what other GNOME modules use

13 years agotests/doctool: Better way of copying the .gir
Tomeu Vizoso [Mon, 15 Aug 2011 13:52:04 +0000 (15:52 +0200)]
tests/doctool: Better way of copying the .gir

13 years agoconfigure.ac: Add tar-pax to AM_INIT_AUTOMAKE
Tomeu Vizoso [Mon, 15 Aug 2011 13:50:45 +0000 (15:50 +0200)]
configure.ac: Add tar-pax to AM_INIT_AUTOMAKE

13 years agooutput namespace.class.methodname for python methods in the doctools
John (J5) Palmieri [Mon, 15 Aug 2011 13:27:05 +0000 (09:27 -0400)]
output namespace.class.methodname for python methods in the doctools

13 years agotests/doctool: Compare -expected directories instead of single files
Tomeu Vizoso [Mon, 15 Aug 2011 12:52:52 +0000 (14:52 +0200)]
tests/doctool: Compare -expected directories instead of single files

13 years agofix up Python doc backend to output correct names
John (J5) Palmieri [Mon, 15 Aug 2011 12:19:29 +0000 (08:19 -0400)]
fix up Python doc backend to output correct names

13 years agotests/doctool: Switch to test the mallard formatter
Tomeu Vizoso [Mon, 15 Aug 2011 12:04:03 +0000 (14:04 +0200)]
tests/doctool: Switch to test the mallard formatter

13 years agofirst pass at python backend for doc tools
John (J5) Palmieri [Mon, 15 Aug 2011 12:01:43 +0000 (08:01 -0400)]
first pass at python backend for doc tools

13 years agotests/doctool: Add the right -expected files to dist
Tomeu Vizoso [Mon, 15 Aug 2011 10:00:38 +0000 (12:00 +0200)]
tests/doctool: Add the right -expected files to dist

13 years agotests/doctool: Update expected files
Tomeu Vizoso [Mon, 15 Aug 2011 09:51:09 +0000 (11:51 +0200)]
tests/doctool: Update expected files

13 years agog-ir-doc-tool: Fix PEP-8 issues
Tomeu Vizoso [Mon, 15 Aug 2011 09:47:13 +0000 (11:47 +0200)]
g-ir-doc-tool: Fix PEP-8 issues

13 years agog-ir-doc-tool: print class declaration line in Python
Tomeu Vizoso [Sun, 14 Aug 2011 14:21:57 +0000 (16:21 +0200)]
g-ir-doc-tool: print class declaration line in Python

13 years agogiscanner/mallardwriter: Adding experimental Mallard output to g-ir-doc-tool
Shaun McCance [Sun, 14 Aug 2011 14:16:35 +0000 (10:16 -0400)]
giscanner/mallardwriter: Adding experimental Mallard output to g-ir-doc-tool

13 years agog-ir-doc-tool: Use namespace.class for Python
Tomeu Vizoso [Sun, 14 Aug 2011 13:15:31 +0000 (15:15 +0200)]
g-ir-doc-tool: Use namespace.class for Python

13 years agog-ir-doc-tool: Ignore for now properties with no known type
Tomeu Vizoso [Sun, 14 Aug 2011 12:24:31 +0000 (14:24 +0200)]
g-ir-doc-tool: Ignore for now properties with no known type

13 years agog-ir-doc-tool: Use the array type when rendering [element-type]
Tomeu Vizoso [Sun, 14 Aug 2011 12:17:33 +0000 (14:17 +0200)]
g-ir-doc-tool: Use the array type when rendering [element-type]

13 years agog-ir-doc-tool: Add -expected test for Python docbook
Tomeu Vizoso [Sun, 14 Aug 2011 09:10:14 +0000 (11:10 +0200)]
g-ir-doc-tool: Add -expected test for Python docbook

13 years agog-ir-scanner: Stop going up the hierarchy once we reach GObject
Tomeu Vizoso [Mon, 15 Aug 2011 09:34:20 +0000 (11:34 +0200)]
g-ir-scanner: Stop going up the hierarchy once we reach GObject

13 years agoMake sure we have UNINSTALLED_INTROSPECTION_SRCDIR when running tests
Tomeu Vizoso [Mon, 15 Aug 2011 09:32:07 +0000 (11:32 +0200)]
Make sure we have UNINSTALLED_INTROSPECTION_SRCDIR when running tests

13 years agoRegress-1.0-expected: Update for previous change
Colin Walters [Mon, 15 Aug 2011 08:22:01 +0000 (04:22 -0400)]
Regress-1.0-expected: Update for previous change

13 years agoannotationparser: Don't eat lines that look like parameters outside param list
Colin Walters [Sun, 14 Aug 2011 09:42:53 +0000 (05:42 -0400)]
annotationparser: Don't eat lines that look like parameters outside param list

If we're done parsing parameters, previously we would simply eat lines that looked like
    @foo: blah blah

Example is in gtkcssprovider.c.

https://bugzilla.gnome.org/show_bug.cgi?id=656504

13 years agoRecognize constructors ending in 'newv'
Torsten Schönfeld [Sat, 13 Aug 2011 14:32:48 +0000 (16:32 +0200)]
Recognize constructors ending in 'newv'

Like gtk_list_store_newv and gtk_tree_store_newv.

https://bugzilla.gnome.org/show_bug.cgi?id=656460

13 years agoMerge remote-tracking branch 'origin/gir-docbook'
Johan Dahlin [Sat, 13 Aug 2011 17:42:05 +0000 (14:42 -0300)]
Merge remote-tracking branch 'origin/gir-docbook'

Conflicts:
.gitignore
tests/scanner/Regress-1.0-expected.gir

13 years agoTry harder to preserve c:type
Johan Dahlin [Sat, 13 Aug 2011 17:36:53 +0000 (14:36 -0300)]
Try harder to preserve c:type

When we replace a type using annotation we should keep
the ctype of the original type.

13 years agoMake sure signal works when there isn't one specified
Johan Dahlin [Sat, 13 Aug 2011 15:45:12 +0000 (12:45 -0300)]
Make sure signal works when there isn't one specified

13 years agoMake sure signal works when there isn't one specified
Johan Dahlin [Sat, 13 Aug 2011 15:45:12 +0000 (12:45 -0300)]
Make sure signal works when there isn't one specified

13 years agog-ir-doc-tool: Add support for varargs
Tomeu Vizoso [Sat, 13 Aug 2011 15:33:46 +0000 (17:33 +0200)]
g-ir-doc-tool: Add support for varargs

13 years agotests/doctool: Updated -expected to match the code in the repo
Tomeu Vizoso [Sat, 13 Aug 2011 14:40:54 +0000 (16:40 +0200)]
tests/doctool: Updated -expected to match the code in the repo

13 years agoAdd signal flags
Johan Dahlin [Sat, 13 Aug 2011 14:21:05 +0000 (11:21 -0300)]
Add signal flags

This adds all GSignalFlags into the gir.

https://bugzilla.gnome.org/show_bug.cgi?id=656457

13 years agoUpdate gitignore
Johan Dahlin [Sat, 13 Aug 2011 14:15:32 +0000 (11:15 -0300)]
Update gitignore

13 years agog-ir-doc-tool: Add alias elements (typedef)
Tomeu Vizoso [Sat, 13 Aug 2011 14:13:41 +0000 (16:13 +0200)]
g-ir-doc-tool: Add alias elements (typedef)

13 years agoAdd signal flags
Johan Dahlin [Sat, 13 Aug 2011 13:35:13 +0000 (10:35 -0300)]
Add signal flags

This adds all GSignalFlags into the gir.

https://bugzilla.gnome.org/show_bug.cgi?id=656457

13 years agoannotationparser: Only accept certain tags
Colin Walters [Sat, 13 Aug 2011 13:35:10 +0000 (09:35 -0400)]
annotationparser: Only accept certain tags

Previously we were eating any line form "* [A-Za-z]: " as a tag,
but this is a problem since e.g. gtk/gtk/gtkcssprovder.c had literal
CSS e.g. block: which erroneously matched.

Fix this by only accepting particular tags, similar to what gtk-doc
does (although we accept a superset, e.g. transfer too).

https://bugzilla.gnome.org/show_bug.cgi?id=656458

13 years agoUpdate gitignore
Johan Dahlin [Sat, 13 Aug 2011 13:35:08 +0000 (10:35 -0300)]
Update gitignore

13 years agoremove the flat struct array test and replace with object pointer array test
John (J5) Palmieri [Sat, 13 Aug 2011 13:18:18 +0000 (09:18 -0400)]
remove the flat struct array test and replace with object pointer array test

13 years agoUpdate expected after rebase
Johan Dahlin [Sat, 13 Aug 2011 13:11:15 +0000 (10:11 -0300)]
Update expected after rebase

13 years agoMove doctool over to common.mk
Johan Dahlin [Sat, 13 Aug 2011 13:06:49 +0000 (10:06 -0300)]
Move doctool over to common.mk

13 years agoUpdate .gitignore
Johan Dahlin [Sat, 13 Aug 2011 13:00:02 +0000 (10:00 -0300)]
Update .gitignore

13 years agoscanner: add a moved_to property to backcompat functions
Torsten Schönfeld [Sat, 13 Aug 2011 10:45:14 +0000 (12:45 +0200)]
scanner: add a moved_to property to backcompat functions

Use it to remove backcompat copies of functions that non introspectable
anyway.

https://bugzilla.gnome.org/show_bug.cgi?id=572408

13 years agoscanner: handle static methods on all types
Torsten Schönfeld [Sat, 13 Aug 2011 10:00:00 +0000 (12:00 +0200)]
scanner: handle static methods on all types

Instead of just handling static methods for classes, handle them for:

  - Records and boxed
  - Unions
  - Interfaces

Based on a patch by Owen Taylor.

https://bugzilla.gnome.org/show_bug.cgi?id=572408

13 years agoAvoid broken emacs syntax highlightning
Johan Dahlin [Sat, 13 Aug 2011 12:39:47 +0000 (09:39 -0300)]
Avoid broken emacs syntax highlightning

13 years agoscanner: Don't throw away blank lines in the docs
Colin Walters [Fri, 12 Aug 2011 10:01:56 +0000 (06:01 -0400)]
scanner: Don't throw away blank lines in the docs

For generating documentation, we actually want to preserve these.

https://bugzilla.gnome.org/show_bug.cgi?id=656389

13 years agoAdd g_irepository_find_by_error_domain()
Dan Winship [Thu, 19 May 2011 21:46:36 +0000 (17:46 -0400)]
Add g_irepository_find_by_error_domain()

Add a method to look up a GIEnumInfo given its associated error quark.

Based on a patch from Colin Walters.

https://bugzilla.gnome.org/show_bug.cgi?id=602516

13 years agoSwitch to storing string form of error quarks
Dan Winship [Thu, 19 May 2011 20:21:13 +0000 (16:21 -0400)]
Switch to storing string form of error quarks

Instead of storing the name of the function to call to get the
error quark, store the string form of the error quark, which
we derive from the introspection binary during scanning.

Update EnumBlob and GIEnumInfo to include the new information.

This will allow determining a back-mapping from error quark
to error domain without having to dlsym() and call all the
known error quark functions.

Based on earlier patches from Owen Taylor and Maxim Ermilov.

https://bugzilla.gnome.org/show_bug.cgi?id=602516

13 years agoDeprecate ErrorDomain
Dan Winship [Thu, 19 May 2011 20:12:03 +0000 (16:12 -0400)]
Deprecate ErrorDomain

The previous ErrorDomain blob was never actually scanned or used, and
it was kind of a lame API conceptually.

To keep some compatibility, rather than removing the enumeration
values, rename them to _INVALID, and don't bump the typelib version.
This should in theory allow a new libgirepository to read an old
typelib.

Based on a patch from Colin Walters

https://bugzilla.gnome.org/show_bug.cgi?id=602516

13 years agogirepository: fix some doc comment syntax
Dan Winship [Fri, 12 Aug 2011 15:10:06 +0000 (11:10 -0400)]
girepository: fix some doc comment syntax

13 years agoAdd Regress method for a closure taking and returning a GVariant
Martin Pitt [Fri, 12 Aug 2011 07:57:41 +0000 (09:57 +0200)]
Add Regress method for a closure taking and returning a GVariant

13 years agoAutomatically turn Gdk.Rectangle gtype into cairo.RectangleInt
Pavel Holejsovsky [Tue, 2 Aug 2011 05:41:54 +0000 (07:41 +0200)]
Automatically turn Gdk.Rectangle gtype into cairo.RectangleInt

Gdk.Rectangle is 'boxed alias', which is not currently weel supported
by g-i.  Work around by transforming Gdk.Rectangle gtype into
cairo.RectangleInt.

https://bugzilla.gnome.org/show_bug.cgi?id=655423

13 years agog-ir-doc-tool: Add structs (no fields yet) and thus fix arguments links
Tomeu Vizoso [Sat, 13 Aug 2011 12:31:10 +0000 (14:31 +0200)]
g-ir-doc-tool: Add structs (no fields yet) and thus fix arguments links

13 years agog-ir-doc-tool: Use same link ids as gtk-doc-mkdb does
Tomeu Vizoso [Sat, 13 Aug 2011 09:58:18 +0000 (11:58 +0200)]
g-ir-doc-tool: Use same link ids as gtk-doc-mkdb does

13 years agog-ir-doc-tool: Move out the * from the return value link
Tomeu Vizoso [Sat, 13 Aug 2011 09:12:01 +0000 (11:12 +0200)]
g-ir-doc-tool: Move out the * from the return value link

13 years agog-ir-doc-tool: Move the * out the type link
Tomeu Vizoso [Sat, 13 Aug 2011 08:43:39 +0000 (10:43 +0200)]
g-ir-doc-tool: Move the * out the type link

13 years agoscanner: Don't throw away blank lines in the docs
Colin Walters [Fri, 12 Aug 2011 10:01:56 +0000 (06:01 -0400)]
scanner: Don't throw away blank lines in the docs

For generating documentation, we actually want to preserve these.

https://bugzilla.gnome.org/show_bug.cgi?id=656389

13 years agog-ir-doctool: Add annotations (some)
Tomeu Vizoso [Fri, 12 Aug 2011 15:16:35 +0000 (17:16 +0200)]
g-ir-doctool: Add annotations (some)

13 years agoAdd g_irepository_find_by_error_domain()
Dan Winship [Thu, 19 May 2011 21:46:36 +0000 (17:46 -0400)]
Add g_irepository_find_by_error_domain()

Add a method to look up a GIEnumInfo given its associated error quark.

Based on a patch from Colin Walters.

https://bugzilla.gnome.org/show_bug.cgi?id=602516

13 years agoSwitch to storing string form of error quarks
Dan Winship [Thu, 19 May 2011 20:21:13 +0000 (16:21 -0400)]
Switch to storing string form of error quarks

Instead of storing the name of the function to call to get the
error quark, store the string form of the error quark, which
we derive from the introspection binary during scanning.

Update EnumBlob and GIEnumInfo to include the new information.

This will allow determining a back-mapping from error quark
to error domain without having to dlsym() and call all the
known error quark functions.

Based on earlier patches from Owen Taylor and Maxim Ermilov.

https://bugzilla.gnome.org/show_bug.cgi?id=602516

13 years agoDeprecate ErrorDomain
Dan Winship [Thu, 19 May 2011 20:12:03 +0000 (16:12 -0400)]
Deprecate ErrorDomain

The previous ErrorDomain blob was never actually scanned or used, and
it was kind of a lame API conceptually.

To keep some compatibility, rather than removing the enumeration
values, rename them to _INVALID, and don't bump the typelib version.
This should in theory allow a new libgirepository to read an old
typelib.

Based on a patch from Colin Walters

https://bugzilla.gnome.org/show_bug.cgi?id=602516

13 years agogirepository: fix some doc comment syntax
Dan Winship [Fri, 12 Aug 2011 15:10:06 +0000 (11:10 -0400)]
girepository: fix some doc comment syntax