Re: Problem with long list for ComboBoxText

This is, I think, a design decision of GTK (mainly due to accessibility concerns). See issue post here:

It may be possible to implement the keypress hack you described, but you may be compromising accessibility 
for aesthetics.


On Wed, Mar 23, 2022 at 04:59:42PM +0100, Kerenoc Kerenoc via gtk-perl-list wrote:

With Gtk3 on Windows and Linux, when a ComboBox has a long list of items to
select from, there is a large empty zone above the first element of the
list. Using the up arrow key then the down arrow key restores a normal

Here is a simple program to reproduce the problem.


use Gtk3 -init;

my $combobox = Gtk3::ComboBoxText->new;
for (0 .. 150) { $combobox->append_text("$_"); };

my $window=Gtk3::Window->new('toplevel');
$window->signal_connect( destroy => sub {Gtk3::main_quit} );

The problem can also be reproduced with a Gtk3::ComboBox.

In case this problem couldn't be solved, how could one emulate two key
events (up and down) in a callback when the combobox opens?

Best regards

gtk-perl-list mailing list
gtk-perl-list gnome org

Few things are harder to put up with than the annoyance of a good example.
                -- "Mark Twain, Pudd'nhead Wilson's Calendar"

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]