2008/8/8 Felix Andrews <[EMAIL PROTECTED]>

> Hi,
>
> Has anyone managed to set up accelerator keys for menus with RGtk2?
>
> Looking at ?gtkAccelMapAddEntry it has an argument
> accel.key [numeric] the accelerator key
> ...so how do you specify the key if it is numeric?
>

That corresponds to the Gdk key code. Use apropos("GDK_") to list all of
those constants. Note that if you're not going to be changing the
accelerator at runtime, it's probably simpler to use gtkWidgetAddAccelerator
on your GtkMenuItem. I admit this could be documented better. But actually,
this stuff is really low-level. Why not use GtkUIManager?


>
> Cheers
> Felix
>
> --
> Felix Andrews / 安福立
> http://www.neurofractal.org/felix/
> 3358 543D AAC6 22C2 D336  80D9 360B 72DD 3E4C F5D8
>
> _______________________________________________
> R-SIG-GUI mailing list
> R-SIG-GUI@stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-gui
>

        [[alternative HTML version deleted]]

_______________________________________________
R-SIG-GUI mailing list
R-SIG-GUI@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-gui

Reply via email to