Re: #52434 - Lock accelerators by default



On 20 May 2001, Havoc Pennington wrote:

> 
> Hi,
> 
> Going to check in this change soon unless there are complaints, it's
> been around for a month or so.
> 
> Havoc
> 
> Index: ChangeLog
> ===================================================================
> RCS file: /cvs/gnome/gtk+/ChangeLog,v
> retrieving revision 1.1973
> diff -u -u -r1.1973 ChangeLog
> --- ChangeLog	2001/05/20 22:48:37	1.1973
> +++ ChangeLog	2001/05/20 22:57:17
> @@ -1,3 +1,14 @@
> +2001-05-07  Havoc Pennington  <hp redhat com>
> +
> +	* gtk/gtkwidget.c, gtk/gtkprivate.h, gtk/gtkitemfactory.c: Apply
> +	Owen's patch for an ACCELS_LOCKED private widget flag, setting
> +	that flag by default, and unsetting it in GtkItemFactory
> +	(gtk_widget_class_init): Install global setting for whether 
> +	to allow accel changing (i.e. if the flag is FALSE, we pretend
> +	the locked flag is always set)
> +	(gtk_widget_accelerators_locked): return TRUE if accelerators
> +	aren't editable according to the user setting
> +

i'm not sure we actually need that.
once we have:
1) support accel locking globally throguh rc-files
2) runtime accel changes on menus honouring mnemonics in conflict resolution
3) default locking of menuitem accelerators that got no accel group
   through item factory (or equivalent mechanism)
4) nuked the global default accel group (NULL)

i don't see the point in needing to lock accels globally per widget.

---
ciaoTJ





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