From: hreba <f_hreba@yahoo.com.br>
Subject: GTK key-press-event
Date: Wed, 2 Nov 2016 10:19:52 +0100
Date: 2016-11-02T10:19:52+01:00 [thread overview]
Message-ID: <e7tpdoFmv48U1@mid.individual.net> (raw)
Hi,
I am trying to write a key press handler with user data. I know how to
connect the handler and that its type is
type Handler is access procedure
Widget : access Widget_Type'Class;
Params : Glib.Values.GValues;
User_Data : User_Type);
What I don't know is how to get the key which was pressed.
A few months ago I had a similar problem where I needed a Cairo Graphics
context, and I got it from the parameter list "Params" , selecting the
first component with Glib.Values.Nth(), and converting that with
Cairo.Get_Context.
Does anybody know how to get Gdk_Event_Key (which contains the
information about the pressed key)?
--
Frank Hrebabetzky +49 / 6355 / 989 5070
next reply other threads:[~2016-11-02 9:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-02 9:19 hreba [this message]
2016-11-02 9:45 ` GTK key-press-event Dmitry A. Kazakov
2016-11-02 16:26 ` hreba
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox