johnfactotum / quick-lookup

Simple GTK dictionary application powered by Wiktionary
GNU General Public License v3.0
94 stars 8 forks source link

ComboBox is broken on GTK 4 #28

Closed johnfactotum closed 1 year ago

johnfactotum commented 2 years ago

It's a GTK bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/3674

kdwk commented 2 years ago

https://user-images.githubusercontent.com/39268094/153176190-87117018-6a9a-4bb0-bc93-6160a8188c3f.mp4

Hi, Dialect seems to be using a scrollable widget for language selection. Would that be applicable here?

johnfactotum commented 2 years ago

Dialect uses a custom popover, with a list view. We could do something similar but that would essentially be re-implementing Gtk.ComboBox, which I'd rather not do.

There's the new Gtk.DropDown widget (which is supposed to supersede the combobox), the behavior of which is actually the same as the custom widget used in Dialect. Unfortunately we need text entry support, which Gtk.DropDown doesn't have.

johnfactotum commented 1 year ago

This has been fixed in GTK.