[EMAIL PROTECTED] wrote:


> Thanks for the speedy reply!  I do have a suggested additional feature
> which I don't think would be too hard to add.  I would like the ability
> for accelerators to be assigned to a named accel_group which I can then
> lookup and attach/detach/add/delete them with the appropriate gtk
> function. The app I'm writing has several "modes" within a single window
> and I'd like to be able to switch accelerator bindings based on mode.
> This feature would be especially useful within the menu editor.  Since
> I see that the interface code already groups them into a single
> accel_group, I don't see the problem with having a few and exporting
> their names....


What types of keyboard accelerator do you mean?

There are several types:
  1) the visible accelerators in menus, e.g. 'Ctrl + D'. These are currently
     added to the window's accel group. 
  2) the underlined keys in menus. These are added to an accel group just for
     the menu. I doubt you want to alter these.
  3) the underlined keys in normal labels. These are currently added to the
     window's accel group.
  4) any other invisible accelerators added by the user, using the 'Accel' page
     in the property editor. I don't think these are very useful.

In Gnome (1) & (2) are done automatically when creating the menu from the
GNOME_UIINFO structs.


Damon


+---------------------------------------------------------------------+
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the line "unsubscribe glade-devel" in the body of the message.

Reply via email to