After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 762623 - GtkSourceStyle: support all GtkTextTag properties in a generic way
GtkSourceStyle: support all GtkTextTag properties in a generic way
Status: RESOLVED WONTFIX
Product: gtksourceview
Classification: Platform
Component: General
unspecified
Other All
: Normal enhancement
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2016-02-24 15:59 UTC by Sébastien Wilmet
Modified: 2018-05-26 13:56 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sébastien Wilmet 2016-02-24 15:59:37 UTC
Instead of duplicating the GtkTextTag properties in GtkSourceStyle, it would be nice to have a smarter support, for all GtkTextTag properties, not just a few.

It is nowadays possible to use GVariant parsing, so in the XML style scheme files it would be just a GVariant for the value of the property.

Then by introspecting the type of the GtkTextTag property, transform the GVariant to the right variable type that can then be passed to g_object_set(). Or g_object_set_property() if we transform the GVariant to a GValue.
Comment 1 Sébastien Wilmet 2016-10-23 08:04:12 UTC
Bug #773351 is related.

Also, there is a plan to support CSS for style schemes. But GtkTextTag doesn't support CSS (yet).
Comment 2 Sébastien Wilmet 2018-05-26 13:56:52 UTC
It's unlikely that this feature is ever going to be implemented, so I close the bug.