gtk-rs / sys

DEPRECATED, each crate has its own sys folder now.
http://gtk-rs.org/
MIT License
31 stars 25 forks source link

Incorrect GIR array c:type on functions that use [] in C parameters #92

Closed bvinc closed 6 years ago

bvinc commented 6 years ago

I've been tracking down an issue that's causing incorrect sys function definitions. You can see the problem with the following functions:

g_key_file_set_boolean_list
g_key_file_set_double_list
g_key_file_set_integer_list
g_key_file_set_string_list
g_key_file_set_locale_string_list
g_object_new_with_properties
g_object_getv
g_object_setv
gtk_icon_theme_get_search_path
gtk_icon_theme_set_search_path
gtk_icon_theme_choose_icon
gtk_icon_theme_choose_icon_for_scale

The sys functions have the wrong definition because the GIR files have incorrect array tags. I've tracked it down to the issue 189 in gi-introspection. It currently has a merge request open on GitLab. So, it'll be a while before the fixed GIR files get released.

Should I just write manual sys definitions of these functions for now? Or should I try to fix the gir files in the fix.sh or something?