Re: [gtk-list] Problem: no key press/release events.
- From: Tomi Ollila <Tomi Ollila tfi net>
- Cc: gtk-list redhat com
- Subject: Re: [gtk-list] Problem: no key press/release events.
- Date: Mon, 16 Aug 1999 13:46:30 +0300 (EET DST)
Sunday Aug 15 23:19:48 +0300 1999 Tomi Ollila <Tomi.Ollila@tfi.net> wrote:
> Hi
>
> I've been writing a program where I like to get key press/release events
> in addition to mouse button press/release events to an eventbox widget
> inside a window.
>
/* code stuff deleted */
>
> All the functions "connected above" printf's the event happened. Now
> I do get button press/release events displayed on the terminal when I
> pressed any of the mouse buttons, but no key press/release events when I
> typed something over the eventbox.
>
> What have I missed to get the key press/release events to work ?
OK. I read the sample manual at: http://pobox.com/~hp/gnome-app-devel.html
and noticed the problem is w/ `keyboard' focus. If I understood right,
W/ G[DT]K only toplevel window receives keyboard events and it redirects
the data to the widget in question.
I reorganized by code a bit to test this, and indeed -- when I add the
keypress/release masks to the toplevel window and connect the signals
accorginfly, I get the events...
Now one thing I yet not know: How to add my eventbox widget to the list
of widgets where the toplevel window enters focus?
>
> Tomi
>
Tomi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]