Re: customizing menu items?

Michael Meeks <[email protected]>
Newsgroups gmane.comp.gnome.components
Organization Ximian.
Message-ID <[email protected]>
Hi Jason,

On Mon, 2003-03-10 at 00:52, Jason Hildebrand wrote:
> The GTK version of Vim displays "accelerators" next to the menu items. 
> eg:
>    Open          :e
>    Save          :w
>    Save as...  :sav
>    Exit         :qa
>    Redo          ^R
...
> In the bonobo version, I can't use the "accel" attribute, because I
> don't actually want these keypresses caught.  I'd like to simply display
> the shortcuts right-justified within the menus.  Is there any way to
> achieve this?

	Currently no - but you're the 2nd person to ask for this in a couple of
days; so I'd be most interested in helping you make it so. How did you
do that with raw gtk+ ? would an extra 'accel_label' property do ? to
hack it up, you'll need to poke at:

	bonobo-ui-sync-menu.c (impl_bonobo_ui_sync_menu_state)

	It shouldn't be too hard to add for Gnome 2.4.

	HTH,

		Michael.

-- 
 [email protected]  <><, Pseudo Engineer, itinerant idiot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.