GLibSharp / GtkSharp

.Net bindings for gtk+3 and above
Other
27 stars 21 forks source link

The nested type BoxChild' does not exist in the type Gtk.Box #74

Open jordimas opened 1 year ago

jordimas commented 1 year ago

Hello,

I have a project called gbrainy (https://gitlab.gnome.org/GNOME/gbrainy) which I was able to compile with old gtk-sharp (https://github.com/mono/gtk-sharp).

When compiling with GtkSharp (version 3.22.2) throws this error:

/Widgets/Toolbar.cs(88,23): error CS0426: The nested type BoxChild' does not exist in the type Gtk.Box'

See: https://gitlab.gnome.org/GNOME/gbrainy/-/blob/master/src/Clients/Classical/Widgets/Toolbar.cs#L88

Does the BoxChild type has been removed by mistake or has been replaced by something else?

Since some Linux distros still distribute https://github.com/mono/gtk-sharp (Debian) and some others (e.g. Fedora) may start distributing GtkSharp, it will be great to maintain as much as possible compatibility with the gtk-sharp API.

thiblahute commented 1 year ago

Hi,

I am not sure when and why that happen, it would be very nice of you if you could check it?

rosset commented 1 year ago

Hi guys, this issue started to happen in Fedora when the gtkSharp was updated from version 2.99.3 (mono-project gtk-sharp) to this GLibSharp implementation per this commit -> https://src.fedoraproject.org/rpms/gtk-sharp3/c/f13bb1f4725d91ce6cbd85afe0298ae30a71763a?branch=rawhide

I'm sure that the gbrainy code were building fine against gtk-sharp3-2.99.3-34.fc37.x86_64, but now it's broken against gtk-sharp3-3.22.2-1.20220808git3.22.2.fc38

jordimas commented 1 year ago

I fixed in gbrainy by not using this class any more.

If you are not interested in understanding in investigating why this class disappeared, you can close the issue.

Thanks

thiblahute commented 1 year ago

I think it would be nice to do some archeologie to at least document the change here.

jordimas commented 1 year ago

For the record, I spent 1 hour and I was unable to understand why BoxChild is not generated with GtkSharp.