How to Add a Keyboard Accelarator to a Button
- From: Shlomi Fish <shlomif vipe technion ac il>
- To: gtk-perl-list gnome org
- Subject: How to Add a Keyboard Accelarator to a Button
- Date: Fri, 22 Jun 2001 12:45:49 +0300 (IDT)
Hi!
I have a button in one of my dialogs and I want it to have a keyboard
accelarator. I.e: I want one of its letters to be underlined, and if the
user presses Alt+[Letter] or whatever is the GNOME convention, it will be
pressed automagically.
I have already did that to the menus, but I don't have Gtk::ItemFactory
for buttons. I know it is possible because a Glade dialog I generated (in
C) uses it. I cannot convert the dialog to perl because Perl-Glade is
broken, and fails on very simple dialogs
Furthermore, I could not find an accelarated button in the Perl/Gtk+
examples. Keyboard integration is very important for usability and
accessibility so we should at least have some working code.
Regards,
Shlomi Fish
----------------------------------------------------------------------
Shlomi Fish shlomif vipe technion ac il
Home Page: http://t2.technion.ac.il/~shlomif/
Home E-mail: shlomif techie com
A more experienced programmer does not make less bugs. He just realizes
what went wrong more quickly.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]