Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example to test GLib.Variant type issue #240

Merged
merged 1 commit into from
Feb 18, 2025
Merged

Conversation

JumpLink
Copy link
Collaborator

This PR adds and improves examples to demonstrate the reported GLib.Variant type issues in #239. The changes focus on providing a clear test case for the reported typing problems with GLib.Variant usage in different contexts.

Changes

  • Improved and restructured the glib-2-variant example to better demonstrate variant usage
  • Added comprehensive test cases for:
    • Basic variant creation and usage
    • DBus signal emission with variants
    • Complex variant structures
    • Variant unpacking methods
  • Added clear documentation and comments
  • Ensured clean program termination

Testing

The example can be run with:

cd examples/glib-2-variant
yarn install
yarn start

Related Issues

  • Fixes Issue with GLib Variant types #239 (GLib.Variant type compatibility issues)
  • Demonstrates the reported type errors with:
    • DBusExportedObject.emit_signal() with variants
    • GSettings value assignment with variants

Notes

  • The example is designed to reproduce the type errors in a minimal, self-contained environment
  • All variant types that were reported as problematic are included in the test cases
  • The code is structured to make it easy to test different variant scenarios

@JumpLink JumpLink mentioned this pull request Feb 18, 2025
3 tasks
@JumpLink JumpLink merged commit 8cb4ddd into main Feb 18, 2025
1 check passed
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.

Issue with GLib Variant types
1 participant