Re: Accelerator-only actions



Am Fre, 2003-09-05 um 21.24 schrieb Matthias Clasen:
> > One comment on the patch.  Does each action truely need its own
> > AccelGroup ?  How much space will that consume ?  I had assumed we
> > would share an AccelGroup for an ActionGroup.
> 
> It is shared. I just need a way to get at the accel group from the
> menuitem (to figure out whether the accelerator is locked), and since I
> can get at the action (via object data :-(), but not from the action to
> the action group, the simplest solution was to let the action keep a
> reference to its accel group.
> 

And I just noticed that I can get rid of it by using
gtk_accel_group_from_accel_closure().

Matthias




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