G_field_info_get_size (), has someone ever get a nonzero value from that function?


I asked already in https://mail.gnome.org/archives/gtk-list/2017-February/msg00014.html

some years ago. Not too important, as we generally ignore fields in high level bindings. But for some structs like GtkTextAttributes with bitfields it may be nice to get a hint that bitfields are involved, so user level allocations should be really avoided.

I just looked at the source code of that function at github – it is not obvious that it always returns zero. So it is not fully impossible that I am using it wrong.


It seems that it is not currently implemented.

Thank you for that info. Unfortunately there is not hint in the API doc that it is not yet implemented.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.