libgedit-gtksourceview 299.0 -> libgedit-gtksourceview 299.2 Porting Guide: libgedit-gtksourceview 300 Reference Manual

## libgedit-gtksourceview 299.0 -> libgedit-gtksourceview 299.2 Porting Guide

## Style schemes file format changes

The `<author>` tags are no longer supported, so you should remove them.

The support for the `parent-scheme` attribute has been removed. It was unused. If you relied on it, copy and adapt the content of the parent scheme.

The support for the `line-background` attribute (for the `<style>` tag) has been removed.

You need to add the `kind` attribute (for light/dark), a new mandatory attribute.

The `version` attribute of the `<style-scheme>` element is no longer supported, so you should remove it.

The parser is now a bit more strict, check if there are warning messages printed in the terminal if a style scheme fails to load.

## API breaks

- The `gtk_source_style_get_data()` function has been removed. GtkSourceStyle is now a boxed type (a simple struct), no longer a GObject. Another important difference is to call the right ref/unref functions for memory management.

  The GtkSourceSearchContext:match-style property is a GtkSourceStyle, so it may require some code changes when using it.

  The `gtk_source_style_scheme_get_authors()` function has been removed.