-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compose: Use
GVariantDict
, not manual hash table
There's a dedicated type for a mapping from "string to variant" in `GVariantDict`. Use it instead of rolling our own with `GHashTable`. The advantage here is improved ergonomics from the C side; e.g. we can directly pass C strings for values and have the variant allocated internally. But more importantly, this is prep for oxidizing things here because we can pass `GVariantDict` to/from Rust easily, not so with `GHashTable`.
- Loading branch information
Showing
3 changed files
with
62 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters