Repository navigation
Conversation
Honor the desktop animated-icons setting: IconMotion.allowed() and IconMotion.animated() read the key through the same GLib.Settings idiom Motion uses for reduce-motion, with a has_key guard so a missing schema or key means on. A motion that is already playing may finish. Assisted-by: zoder:qwen38 AI-Scope: generated the animated-icons gate in icon_motion.vala and its test in motion_test.vala with the fixture schema key; prompts: honor the animated-icons setting in IconMotion, then simplify the test.
Walkthrough
Merge Risk:
|
| fresh_clock(); | ||
| var settings = new GLib.Settings("dev.sinty.motiontest"); | ||
| assert(settings.get_boolean("animated-icons") == true); | ||
| assert(IconMotion.animated_icons_enabled_for_test()); |
There was a problem hiding this comment.
Make the test accessor available to the test target.
motion-test compiles separately and consumes the library’s public VAPI. animated_icons_enabled_for_test() is internal, so that VAPI excludes it and this call prevents the test target from compiling. Provide test-only internal bindings, or test through the public API. (raw.githubusercontent.com)
Internal pre-review (not for merge).