Re: keyboard short cuts/accelerators



Grizzly(Francis Smit) wrote:
> José Alburquerque wrote:
>   

> Ummm could you tell me more set_accel_key(const AccelKey& accel_key)
> looks the best but it's protected, should I derive and use this??
>
> set_accel_path(const Glib::ustring& accel_path)
>
>
> is available  but I don't understand what it does
>
>   
OK I did it by overloading Gtk::ImageMenuItem and exposing the
functionality
of 

set_accel_path(const Glib::ustring& accel_path) but how do I get the little 
label telling me what the accel is next to the item i.e. the Crtl+C Ctrl+D 
or whatever.  I have tried add_accel_label(const Glib::ustring& label, bool mnemonic=true) 
but it doesn't work :( 


-- 
  In my life God comes first.... but Linux is pretty high after that :-D
Grizzly(Francis Smit)
http://www.geekcode.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GM/CS/P/PA d- s+:+> a+>? C++++ UL++++@ P+ L+++ E--- W+++ N+(++) K w--- M-- V-- PS(+) PE(-) Y+(++) PGP++ t+(++) 5 X- R- tv b+++(++++) DI(--) D G e++(+++) h-- r- y-
------END GEEK CODE BLOCK------




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]