! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Add support for GObject Introspection and Vala
Status:
RESOLVED: FIXED

Comments

Description Olivier Duchateau 2019-02-11 19:42:31 CET
Created attachment 8290 
Add support for GObject Introspection and Vala

Patch add support for GObject introspection and Vala. Some methods are not introspectable (I tried several fixes in GTK-Doc block, without success), especially xfconf_channel_get_properties(). But we can use the org.xfce.Xfconf service.

Note: it requires the patch available in bug #15112
Comment 1 Olivier Duchateau 2019-02-11 19:48:11 CET
Created attachment 8291 
Example using Xfconf.Channel

This test script create 'xfce4-dummy' channel with 2 properties:
- /property-boolean → GObject.TYPE_BOOLEAN
- /property-string → GObject.TYPE_STRING
Comment 2 Olivier Duchateau 2019-02-11 19:49:50 CET
Created attachment 8292 
Example using 'property-changed' signal

Another script which shows 'property-changed' signal (it requires previous script).
Comment 3 Olivier Duchateau 2019-02-11 20:12:06 CET
(In reply to Olivier Duchateau from comment #0)
> Created attachment 8290 
> Add support for GObject Introspection and Vala
> 
> Patch add support for GObject introspection and Vala. Some methods are not
> introspectable (I tried several fixes in GTK-Doc block, without success),
> especially xfconf_channel_get_properties(). But we can use the
> org.xfce.Xfconf service.
> 
> Note: it requires the patch available in bug #15112

It respects namespace of GIR file (first letter capital, rest lower case).
Comment 4 Olivier Duchateau 2019-02-15 21:30:43 CET
Created attachment 8304 
Add support for GObject Introspection and Vala

Improve GObject introspection support (now only error is Xfconf error Quark enumeration, otherwise all methods are introspectable).
Comment 5 Git Bot editbugs 2019-06-24 22:01:28 CEST
Olivier Duchateau referenced this bugreport in commit 8d4284058bd7acd951f112ac6d3fd42c02eefe7f

Add support for GObject introspection and vala

https://git.xfce.org/xfce/xfconf/commit?id=8d4284058bd7acd951f112ac6d3fd42c02eefe7f
Comment 6 Skunnyk editbugs 2019-06-24 22:03:05 CEST
Thank you very much Olivier !

Bug #15135

Reported by:
Olivier Duchateau
Reported on: 2019-02-11
Last modified on: 2019-07-06

People

Assignee:
Skunnyk
CC List:
2 users

Version

Version:
GIT Master

Attachments

Add support for GObject Introspection and Vala (12.53 KB, patch)
2019-02-11 19:42 CET , Olivier Duchateau
no flags
Example using Xfconf.Channel (1.60 KB, text/x-python)
2019-02-11 19:48 CET , Olivier Duchateau
no flags
Example using 'property-changed' signal (1010 bytes, text/x-python)
2019-02-11 19:49 CET , Olivier Duchateau
no flags
Add support for GObject Introspection and Vala (15.64 KB, patch)
2019-02-15 21:30 CET , Olivier Duchateau
no flags

Additional information