From: Andy S. <laz...@gm...> - 2010-09-21 16:55:29
|
Hi Sebastian, Here is demo you want : http://code.haskell.org/gtk2hs/gtk/demo/menu/MenuDemo.hs Press Alt-F will show "File" menu. Cheers, -- Andy Sebastian Menge <seb...@un...> writes: > Hi > > I want to bind some actions to custom shortcuts. But I dont get it. I > am no gtk-expert, especially I dont udnerstand what "Accelerators" are. > > I found a minimal example in this tutorial: > http://www.muitovar.com/gtk2hs/chap7-1.html > > But the mentioned "Ctrl-E" doesnt work for me. > > Could anyone post a minimal example, that shows how to bind shortcuts > to MenuItems? Or (as an alternative) how to define independent actions > that are accessible from the menubar and via shortcut and perhaps via a > context menu. > > I did too much Java/Swing in my life. Perhaps a general, short, > introduction to the core concepts of GTK (for a Java-Programmer) would > also be nice. > > Thanks in advance, > > Sebastian. > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev |