From: Hans v. T. <hth...@zo...> - 2007-11-21 22:32:03
|
Hello All, There is a function: actionGroupAddActionWithAccel :: ActionClass action => ActionGroup -> action action - the action to add -> Maybe String accelerator - the accelerator for the action, in the format understood by acceleratorParse, or "" for no accelerator, or Nothing to use the stock accelerator -> IO () used for actions, accelerators and action groups. If I use Nothing, however, the accelerator key for an action is displayed, but does not appear to be active. If I use a string like (Just "<Control>e") for example, again the correct key is displayed, but pressing that combination has no effect. In the Action Menu demo, included in Gtk2Hs 0.9.12, the accelerator keys don't work either. Could this be peculiar to my system (Fedora 6, i386), is this maybe not implemented in Gtk2Hs yet, or am I just missing something? Secondly, it appears you can merge menus and toolbars together, and unmerge them again, using the uiManager and XML definitions of the parts. I haven't been able to find an example of this anywhere. Has anybody actually done this? Any help appreciated.. Hans van Thiel |