Re: [gtk-list] RE: [Q]: EventBox and key_press_event
- From: Tomi Ollila <Tomi Ollila tfi net>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] RE: [Q]: EventBox and key_press_event
- Date: Fri, 20 Aug 1999 12:06:27 +0300 (EET DST)
Friday Aug 20 10:34:58 +0200 1999 Arjan J. Molenaar <arjan@xirion.nl> wrote:
> Hi,
>
> I had an equal kind of problem: I had to let a drawingarea catch key
> events when a window had focus. I use gtk_widget_grab_focus (widget) after
> the widget is shown to let that widget get the events (there are also
> scrollbars in my window which work fine!).
Also add GTK_WIDGET_SET_FLAGS(GTK_WIDGET(eventbox), GTK_CAN_FOCUS);
Now after pressing <TAB> you'll eventually get the focus again.
>
> Hope this will do the job.
>
> regards,
>
> Arjan
Tomi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]