Open cameronwhite opened 1 year ago
Ah yes there is no signal support for interfaces available anywhere not even in the class for the gir/xml: https://github.com/gircore/gir.core/blob/main/src/Generation/GirLoader/Input/Interface.cs
I hit the same thing recently. I wanted to listen for the changed
signal on an Adw.EntryRow
, which is part of the Editable
interface: https://docs.gtk.org/gtk4/signal.Editable.changed.html
@badcel suggested using GObject.Signal
directly, which worked great:
var signal = new Signal<EntryRow>("changed", "changed");
signal.Connect(_name, (_, _) => Console.WriteLine("Hello!"));
When porting some Pinta code to
Gtk.ListView
I couldn't findGtk.SingleSelection.OnSelectionChanged
. I think this is likely because this is an interface signal fromGtk.SelectionModel
(https://docs.gtk.org/gtk4/signal.SelectionModel.selection-changed.html) which doesn't seem to have any support currently