Re: Underline accelerators in menu items



On Sun, 27 May 2001, Jeff Franks wrote:

> .Hi,
>
> Now that 'gtk_menu_ensure_uline_accel_group' and 'gtk_label_parse_uline'
> have gone and mnemonic functions are used to set/get mnemonic widgets
> and key values  how do you set an underline accelerator for a menu item.
> Shouldn't there be some function(s) to make this easier than having to
> retrieve a handle to the 'private' label widget and using GtkLabel's new
> mnemonic functions. Should underline acclerators get parsed
> automatically as they are in GtkItemfactory.

Having some helper functions here would probably be good.

I suggest gtk_menu_item_new_with_mnemonic() and
gtk_accel_label_new_with_mnemonic().

/ Alex







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