Re: #52434 - Lock accelerators by default

On 7 May 2001, Owen Taylor wrote:


 I assume it's an answer to my question. Thank you for it. 

 As for me - I would like to propose additional (may be undocumented or
officially prohibbited) global user preference
"gtk-all-acceleterators-unlocked-unconditionally-hack" that will allow users
to have ability to set accelerators to menus generated by hand (most useful
for context menus) - i.e. that will unlock all accelerators.

 Best regards,
> Havoc Pennington <hp redhat com> writes:
> > Hi,
> > 
> > So here is the patch slightly modified to add a global
> > "gtk-accelerators-locked" user preference which controls whether
> > accelerators are actually unlocked when the program unlocks them.
> > i.e. if the program says "yes I handle unlocked accelerators" by
> > calling gtk_widget_unlock_accelerators(), then the user setting comes
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> By this, Havoc meant that the code creating the menu items - e.g.
> GtkItemFactory or GnomeAppHelper, calls gtk_widget_unlock_accelerators() -
> to indicate that it is able to handle accelerator setting.
> The point of this is to avoid having changeable accelerators on
> fthings like option menus created by hand, even if the user
> has globally enabled changeable menus.
>                                         Owen
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org

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