[R-gui] gtkAccelMapAddEntry

Felix Andrews felix at nfrac.org
Sat Aug 9 03:41:47 CEST 2008


2008/8/9 Michael Lawrence <mflawren at fhcrc.org>:
>
>
> 2008/8/8 Felix Andrews <felix at nfrac.org>
>>
>> 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?

Ah - because I didn't know it existed. Thanks for the tip.


>
>>
>> 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 at stat.math.ethz.ch
>> https://stat.ethz.ch/mailman/listinfo/r-sig-gui
>
>



-- 
Felix Andrews / 安福立
http://www.neurofractal.org/felix/
3358 543D AAC6 22C2 D336  80D9 360B 72DD 3E4C F5D8



More information about the R-SIG-GUI mailing list