Re: help: using a shortcut to drop down the file menu



On Thu, 2004-03-25 at 04:17, Steven Daniel Webb wrote:
newbie question.

When the user presses a key (such as 'm') I want to drop down the file 
menu, but I can't figure out how to do this.
I've tried using accelerator keys.  They work great for activating menu 
items, but I couldn't get the file menu to drop down.

Use gtk_menu_item_new_with_mnemonic():

menuitem_file = gtk_menu_item_new_with_mnemonic ("_File");

Then "Alt + f" should drop down your menu.

Using,  gtk_menu_item_new_with_mnemonic ("Fi_le")  , as example, the
trigger will be "Alt + l". 

I mean, the underscore marks the character that used with the "Alt" key,
will drop down your menu. 
-- 
Iago Rubio                http://www.iagorubio.com          
GPGkey pgp.rediris.es id 0x909BD4DD  fingerprint =
D18A B950 5F03 BB9A DD89  AA75 FEDF 1978 909B D4DD
********** iago.rubio(AT)hispalinux.es  **********     
--------------------------------------------------

Attachment: signature.asc
Description: This is a digitally signed message part



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