jwharm / java-gi

GObject-Introspection bindings generator for Java
GNU Lesser General Public License v2.1
84 stars 7 forks source link

org.gnome.adw.ExpanderRow.titleLines returns Boolean instead of Int #96

Closed gavr123456789 closed 5 months ago

gavr123456789 commented 5 months ago

image

Return Type must be int https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/property.ExpanderRow.title-lines.html

jwharm commented 5 months ago

This is actually a gboolean: https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/method.ExpanderRow.get_title_lines.html

So it seems to be a bug in LibAdwaita. You can work around it using lines = (int) expanderRow.getProperty("title-lines").

badcel commented 5 months ago

Seems to be fixed in current Gir-Files already.

sorry I did not check the method itself. There it is still wrong.

jwharm commented 5 months ago

I logged https://gitlab.gnome.org/GNOME/libadwaita/-/issues/844 upstream