Skip to content

Fix XML validation errors for GtkSourceView 4+ compatibility#27

Open
gwagner04008 wants to merge 1 commit into
mig:masterfrom
gwagner04008:gtksourceview-compatibility
Open

Fix XML validation errors for GtkSourceView 4+ compatibility#27
gwagner04008 wants to merge 1 commit into
mig:masterfrom
gwagner04008:gtksourceview-compatibility

Conversation

@gwagner04008

Copy link
Copy Markdown

Newer versions of libgedit-gtksourceview utilize a stricter XML parser that rejects previously valid (or ignored) syntax, causing themes to fail loading.

This commit modernizes the style schemes by:

  • Removing the tag from the style-scheme body (moved to comments where applicable).
  • Replacing the deprecated 'map-to' attribute with 'use-style'.
  • Removing duplicate style definitions.
  • Fixing invalid color definitions (removing alpha channels and unsupported named colors like #grey).
  • resolving conflicting attributes (ensuring 'use-style' is not mixed with 'foreground/background').

These changes restore functionality in Gedit 46+ and other modern GtkSourceView editors.

Newer versions of libgedit-gtksourceview utilize a stricter XML parser that rejects previously valid (or ignored) syntax, causing themes to fail loading.

This commit modernizes the style schemes by:
- Removing the <author> tag from the style-scheme body (moved to comments where applicable).
- Replacing the deprecated 'map-to' attribute with 'use-style'.
- Removing duplicate style definitions.
- Fixing invalid color definitions (removing alpha channels and unsupported named colors like #grey).
- resolving conflicting attributes (ensuring 'use-style' is not mixed with 'foreground/background').

These changes restore functionality in Gedit 46+ and other modern GtkSourceView editors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant