[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Accelerator keys and popup menus?
- From: Mike Melanson <mike multimedia cx>
- To: Stefan Kost <ensonic hora-obscura de>
- Cc: Gtk-App-Devel-List <gtk-app-devel-list gnome org>
- Subject: Re: Accelerator keys and popup menus?
- Date: Sun, 19 Aug 2007 13:25:24 -0700
Stefan Kost wrote:
> Hi,
>
> Daniel Pekelharing wrote:
>> Hi all,
>>
>> Sorry to be posting yet more questions about accel keys...
>>
>> I have created a popup menu and assigned accelerator keys to some of the
>> items,
>>
>> I assigned a GtkAccelGroup to the menu using
>> gtk_menu_set_accel_group(..),
>>
>> I attached the same GtkAccelGroup to the main window with
>> gtk_window_add_accel_group(..),
>>
>> I assigned each item an accel path gtk_menu_item_set_accel_path(..),
>> and finally I set an accelerator key with gtk_accel_map_add_entry(..).
>>
>> The problem is that the accelerator keys don't work on the popup menu,
>> using the exact same functions they work fine on the main menu..
>>
>> Am I missing something somewhere?
>>
>> Thanks!
>
> I seem to have the same problem. Have you found a solution in the last 2 years?
I had this same problem at one point. The details are a little fuzzy,
but the key is getting the terminology straight. Perhaps what you are
looking for is a "mnemonic" vs. an "accelerator". Look that up. It might
be what you're looking for.
--
-Mike Melanson
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]