Skip to content

Granite.Symbol: improve API - #239

Draft
danirabbit wants to merge 4 commits into
danirabbit/granite-symbolfrom
danirabbit/granitesymbol-api
Draft

Granite.Symbol: improve API#239
danirabbit wants to merge 4 commits into
danirabbit/granite-symbolfrom
danirabbit/granitesymbol-api

Conversation

@danirabbit

@danirabbit danirabbit commented Aug 19, 2026

Copy link
Copy Markdown
Member
  • state is now a string:
    • We can have state constants for standard states and not have to worry about matching index across symbols
    • Developers can create custom symbols and have custom state names that are nice like state = "jumping" instead of state = 4
  • States are validated and we throw a warning when invalid states are set
  • state_index is still public?

Comment thread src/Widgets/Symbol.vala Outdated
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.

2 participants