Re: Underline accelerators in menu items



On Sat, 26 May 2001, Alex Larsson wrote:

> 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().

note that you can simply put a mnemonic label into a menu item
and the menu item is picked up automatically. 
this should probably become an FAQ entry.

> 
> / Alex
> 

---
ciaoTJ





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