Re: [gtk-list] RE: Need advice on key_press_event.



"Arjan J. Molenaar" <arjan@xirion.nl> writes:

| Hi,
| 
| You should call gtk_widget_grab_focus (<canvas widget>) to lead all default events to that widget (I presume you have a GtkDrawingArea as canvas). Note that you have to do that after you realized the widget and it's parent widgets (let's say after a gtk_widget_show_all () ).
| This works fine for my widget (DiaCanvas at http://web.inter.nl.net/hcc/klem/diacanvas.html).

This means I have to do the grab_focus every time I have used an
entry-widget or pressed a button, doesn't it?

-- 
Preben Randhol             oO     "Don't think about domination,  think
[randhol@pvv.org]        .`  ;     about freedom, it doesn't dominate."
[www.pvv.org/~randhol/]   \ G                  -- RMS, LinuxWorld 1999.
                           `_) n o m e 



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