Re: [gtk-list] Setting accelerators in GtkItemFactoryEntry



Jens Askengren wrote:

> Is it possible to use keys as return, delete etc. as acceleratorkeys
> in a GtkItemFactoryEntry? I have tried the obvious "<return>" and
> "<delete>" but it doesen't seem to work.

Hi,

try s.th. like this:

 if( (event->keyval) == GDK_Return ){
  main_find_product();
 }

The correct names of the key signals are probably in the GDK reference. If not
they are surely in the source code of GDK to be found.

Regards
Daniel

--
  ("`-''-/").___..--''"`-._   UNIX *is* user-friendly, he is just very
   `6_ 6  )   `-.  (     ).`-.__.`) picky about who his friends are...
   (_Y_.)'  ._   )  `._ `. ``-..-'      Daniel Hops
 _..`--'_..-_/  /--'_.' ,'
(il),-''  (li),'  ((!.-'





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