Skip to content

Conversation

@danirabbit
Copy link
Member

@danirabbit danirabbit commented Jul 19, 2025

Custom map style using elementary palette colors:

Screenshot from 2025-07-19 11 39 57

@danirabbit danirabbit added this to OS 9 Jul 19, 2025
@danirabbit danirabbit moved this to In progress in OS 9 Jul 19, 2025
Comment on lines +503 to +513
string? string_arg = list.arg ();
if (string_arg != null) {
argument.add_string_element (string_arg);
continue;
}

int? int_arg = list.arg ();
if (int_arg != null) {
argument.add_int_element (int_arg);
continue;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really don't feel this works as expected. Maybe we should use GLib.Variant or GLib.Value for the type of each arg in va_list, check the type for each of them, and unpack from it and then use add_string_element or add_int_element?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this was in the example on valadoc but I agree it seems to be a point of failure

Co-authored-by: Ryo Nakano <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

3 participants