Problem with long list for ComboBoxText
- From: Kerenoc Kerenoc <kerenoc01 gmail com>
- To: gtk-perl-list gnome org
- Subject: Problem with long list for ComboBoxText
- Date: Wed, 23 Mar 2022 16:59:42 +0100
Hello,
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.
================================
#!/usr/bin/perl
use Gtk3 -init;
my $combobox = Gtk3::ComboBoxText->new;
for (0 .. 150) { $combobox->append_text("$_"); };
$combobox->set_active(0);
my $window=Gtk3::Window->new('toplevel');
$window->signal_connect( destroy => sub {Gtk3::main_quit} );
$window->add($combobox);
$window->show_all;
Gtk3->main();
================================
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]