Re: Underline accelerators in menu items
- From: Alex Larsson <alexl redhat com>
- To: Tim Janik <timj gtk org>
- Cc: Gtk+ Developers <gtk-devel-list gnome org>, Jeff Franks <jcf tpg com au>
- Subject: Re: Underline accelerators in menu items
- Date: Sun, 27 May 2001 16:11:41 -0400 (EDT)
On Sun, 27 May 2001, Tim Janik wrote:
> 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.
Yes, but since GtkMenuItem already has a helper function new_with_label()
having to do the mnemonic one by hand seems a bit strange.
/ Alex
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]