Re: [gtk-list] Re: menu accelerator bug or feature?



On Sat, 27 Feb 1999, Nicholas T. wrote:

> Havoc Pennington wrote:
> 
> > On Fri, 26 Feb 1999, Nicholas T. wrote:
> > > is this a bug or just a feature that i just don't understand?
> > >
> >
> > It's a cool but dubious feature. Some apps (Gimp?) save the new keybinding
> > and restore it when you restart the app.
> >
> > Havoc
> >
> 
> hmm..that could be kind of neat i guess..it doesn't seem to handle preexisting
> keybindings very well by default though. you can end up with multiple menu
> items showed as being bound to the same key but only one of them is actually
> bound. (making it a bit difficult for the user to figure out what the other
> item accelerator is. not to mention a bit confusing.)

what? this should essentially never happen, the accel group and gtkmenu code
perfom accelerator negotiation, so that the most recently changed accelerator
wins (mostly). if you encounter the same accelerator assigned to more than one
menu item then that is a definite bug (if they appear in different menus of
the same window then that means that the application isn't setting up the
accel groups accordingly).

> 
> josh
> 
 
---
ciaoTJ



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