The docs for Gtk.DropDown.set_selected says to pass in GTK_INVALID_LIST_POSITION to deselect any previous selection. This constant doesn't appear to be included in the generated bindings.
If I manually define a const in my application with the value glib.MAXUINT32 (which is, in effect, how glib defines the constant) it works as expected, so this should be as simple as adding an appropriately named constant. (Based on other glib constants, I assume this would be gtk.INVALID_LIST_POSITION, to mirror e.g. gtk.LEVEL_BAR_OFFSET_FULL)
gotk4 v0.2.2
The docs for Gtk.DropDown.set_selected says to pass in
GTK_INVALID_LIST_POSITION
to deselect any previous selection. This constant doesn't appear to be included in the generated bindings.If I manually define a const in my application with the value
glib.MAXUINT32
(which is, in effect, how glib defines the constant) it works as expected, so this should be as simple as adding an appropriately named constant. (Based on other glib constants, I assume this would begtk.INVALID_LIST_POSITION
, to mirror e.g.gtk.LEVEL_BAR_OFFSET_FULL
)