Re: Accelerators, anyone?

From: Date: Mon, 04 Feb 2002 22:21:40 +0000
Subject: Re: Accelerators, anyone?
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-1117@lists.php.net to get a copy of this message
Sorry, I forgot to "add_accel_group" to the window. Thanks for the additional information anyway. Steph wrote:
http://gtk.php.net/manual/en/gtk.gtkmenu.constructor.php lock() is the accel GROUP information, not the specific accelerator entry. & no you don't need to unlock it. ----- Original Message ----- From: "Gregory Kaczmarczyk" <casmar@mac.com> To: <php-gtk-general@lists.php.net> Sent: Friday, February 01, 2002 11:02 PM Subject: [PHP-GTK] Accelerators, anyone?
Can I ask why this accelerator is not working for me? $key_data = &new GtkAccelGroup(); $key_data->unlock(); //is this unecessary? // ... create some menus $filemenu_quit = &new GtkMenuItem("Quit"); $filemenu_quit->connect("activate", "quit"); $filemenu_quit->add_accelerator("activate", $key_data, GDK_KEY__q, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); $filemenu->append($filemenu_quit); // ... finish menus $key_data->lock(); //again, unnecessary? I do not get any error messages when running this, however, when I attempt pressing 'Ctrl-q', nothing happens. Oh, and it does display in my menu with "Quit" left justified & "Ctrl-Q" right justified. Thanks for any help. -- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, e-mail: php-gtk-general-unsubscribe@lists.php.net For additional commands, e-mail: php-gtk-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net


« previous php.gtk.general (#1117) next »