GTK4 dropdown mouse selection problem
Hello,
I try to write an application with GTK4 ( 4.10 ) in rust on a Mac M1...
I added a dropdown widget, and when I change the selected item with the mouse, the selected item don't change...
If i do it with the keyboard : click on the widget, navigate in the list with arrow, and validate by a enter key-press... That works perfectly.
That's the first application that i write in rust/GTK so i'm not sure to have a good knowledge of the widget... but it seams that there is a problem that come from the library... No ?
// Créer un DropDown
let DropDown1 = DropDown::builder()
.margin_top(10)
.margin_bottom(0)
.margin_start(10)
.margin_end(10)
.halign(Align::Start)
.valign(Align::Center)
.build();
// Créer une liste de chaînes pour le DropDown
let list_model = StringList::new(&[
"Item1",
"Item2",
"Item3",
"Item4",
]);
DropDown1.set_model(Some(&list_model));
DropDown1.set_selected(0);
If someone have an idea... It would be great
Have a good day,
Geoffroy