Re: Problem with long list for ComboBoxText

Thanks for the information.I'll favour accessibility then rather than fight Gtk.




Le jeu. 24 mars 2022 à 15:02, Jeremy Volkening via gtk-perl-list <gtk-perl-list gnome org> a écrit :
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:
> 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

> _______________________________________________
> 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"
gtk-perl-list mailing list
gtk-perl-list gnome org

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