Problem with long list for ComboBoxText


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 situation.

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

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