Low-level core library that forms the basis for projects such as GTK+ and GNOME.
Go to file
Emmanuele Bassi 39d518267b Add new annotations for property accessors
We introduce two new annotations:

  - (set-property PROPERTY_NAME)
  - (get-property PROPERTY_NAME)

These annotations are valid inside function blocks for methods on
objects and interfaces, and define whether a function is a property
accessor, e.g.:

    /**
     * gtk_widget_set_name: (set-property name)
     * @self: ...
     * @name: ...
     *
     * ...
     */

    /**
     * gtk_widget_get_name: (get-property name)
     * @self: ...
     *
     * ...
     *
     * Returns: ...
     */

The annotations are transformed into the GIR data as attributes:

 - glib:set-property="PROPERTY_NAME"
 - glib:get-property="PROPERTY_NAME"

The underlying typelib data has had flags for setter and getter
functions for a while, but they have never been plugged into the GIR
data or the introspection scanner. Now they are; you can retrieve the
GIPropertyInfo from a GIFunctionInfo that has the GI_FUNCTION_IS_SETTER
or GI_FUNCTION_IS_GETTER flags set.

Fixes: #13
2021-08-05 17:47:29 +01:00
cmph Revert "Revert "Meson: Fix build when glib is built as subproject"" 2020-04-24 15:05:03 -04:00
cmph-bdz-test.c Drop calls to g_type_init() 2012-10-16 10:58:08 -04:00
docs.c docs: Remove everything not related to libgirepository and restructure. Fixes #244 2018-12-14 11:29:11 +01:00
gdump.c Add "final" class attribute 2021-08-05 16:24:23 +00:00
gi-dump-types.c meson: also build gi-dump-types on Windows 2020-05-19 19:39:34 +02:00
giarginfo.c docs: fix gtk-doc warnings and update version infos 2018-12-09 18:26:26 +01:00
giarginfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
gibaseinfo.c baseinfo: don't abort when calling g_base_info_get_name() on a GITypeInfo. Fixes #96 2018-12-15 23:33:32 +00:00
gibaseinfo.h docs: fix gtk-doc warnings and update version infos 2018-12-09 18:26:26 +01:00
gicallableinfo.c girepository: Fix leak in g_callable_info_invoke 2021-06-18 14:28:05 +00:00
gicallableinfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
giconstantinfo.c Use g_memdup2() with newer versions of GLib 2021-03-12 18:55:44 +00:00
giconstantinfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
gienuminfo.c docs: fix gtk-doc warnings and update version infos 2018-12-09 18:26:26 +01:00
gienuminfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
gifieldinfo.c docs: Field offsets are in the units of bytes 2018-12-14 16:28:58 +01:00
gifieldinfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
gifunctioninfo.c Property accessors work for interfaces and objects 2021-08-05 17:47:29 +01:00
gifunctioninfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
giinterfaceinfo.c docs: fix gtk-doc warnings and update version infos 2018-12-09 18:26:26 +01:00
giinterfaceinfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
ginvoke.c Initialise argument 2021-06-24 18:17:56 +00:00
giobjectinfo.c Add "final" class attribute 2021-08-05 16:24:23 +00:00
giobjectinfo.h Add "final" class attribute 2021-08-05 16:24:23 +00:00
gipropertyinfo.c docs: fix gtk-doc warnings and update version infos 2018-12-09 18:26:26 +01:00
gipropertyinfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
giregisteredtypeinfo.c docs: fix gtk-doc warnings and update version infos 2018-12-09 18:26:26 +01:00
giregisteredtypeinfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
girepository-private.h build: enable -Wredundant-decls 2018-07-29 18:57:03 +02:00
girepository.c Add missing nullable annotation to g_irepository_get_shared_library 2020-05-14 17:24:08 +02:00
girepository.h girepository: Return pointer array for interface cache 2019-06-20 11:54:10 -07:00
girffi.c build: enable -Wswitch-default 2018-07-29 18:57:03 +02:00
girffi.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
girmodule.c girepository: Use constant time calculation for sections after Object fields 2015-10-10 17:41:24 -04:00
girmodule.h Add Emacs mode lines to C sources 2012-02-03 13:42:56 -05:00
girnode.c Add new annotations for property accessors 2021-08-05 17:47:29 +01:00
girnode.h Add new annotations for property accessors 2021-08-05 17:47:29 +01:00
giroffsets.c docs: fix up reference docs a bit 2013-10-10 16:48:51 -04:00
girparser.c Add new annotations for property accessors 2021-08-05 17:47:29 +01:00
girparser.h Add Emacs mode lines to C sources 2012-02-03 13:42:56 -05:00
girwriter.c Add new annotations for property accessors 2021-08-05 17:47:29 +01:00
girwriter.h Add Emacs mode lines to C sources 2012-02-03 13:42:56 -05:00
gisignalinfo.c docs: fix gtk-doc warnings and update version infos 2018-12-09 18:26:26 +01:00
gisignalinfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
gistructinfo.c structinfo: Fix offset in find_method() 2019-08-14 23:17:54 +02:00
gistructinfo.h docs: fix gtk-doc warnings and update version infos 2018-12-09 18:26:26 +01:00
gitypeinfo.c girepository: Add GITypeInfo utility functions for storing values in pointers 2020-04-26 10:24:26 -07:00
gitypeinfo.h girepository: Add GITypeInfo utility functions for storing values in pointers 2020-04-26 10:24:26 -07:00
gitypelib-internal.h Add "final" class attribute 2021-08-05 16:24:23 +00:00
gitypelib.c girepository: Fix leak in prefix_with_context 2021-06-18 14:28:05 +00:00
gitypelib.h docs: Remove everything not related to libgirepository and restructure. Fixes #244 2018-12-14 11:29:11 +01:00
gitypes.h docs: fix gtk-doc warnings and update version infos 2018-12-09 18:26:26 +01:00
giunioninfo.c docs: fix gtk-doc warnings and update version infos 2018-12-09 18:26:26 +01:00
giunioninfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
giversion.c girepository: Add version macros and functions. Fixes #200 2018-12-16 12:51:58 +01:00
giversion.h.in girepository: Add version macros and functions. Fixes #200 2018-12-16 12:51:58 +01:00
giversionmacros.h Add version macros for 1.70 2021-08-05 16:24:23 +00:00
givfuncinfo.c docs: fix gtk-doc warnings and update version infos 2018-12-09 18:26:26 +01:00
givfuncinfo.h girepository: Add Header for Version Macros 2014-08-15 09:45:41 +08:00
gthash-test.c Drop calls to g_type_init() 2012-10-16 10:58:08 -04:00
gthash.c build: enable -Wtype-limits 2018-07-29 18:57:03 +02:00
meson.build Make test suite work with cross-related options 2021-05-23 12:56:21 -04:00