Re: [gtkmm] threads



>On Fri, May 16, 2003 at 04:02:21PM -0400, Silviu D Minut wrote:
>> With the code provided above, the thread starts/stops when I toggle the
>> start/stop button, but the application no longer quits when I press q. It
>> does quit, however, (even with the thread) if I connect the window itself
>> (not the drawing area) to the key_press_event. What am I doing wrong? Is
>> the above code fundamentally flawed?
>
>Gtk::DrawingArea doesn't seem to get any key_press_events. I've had this
>problem too. It has nothing to do with threads.

you need to call add_events() or set_events(), plus set the
GTK_CAN_FOCUS flag.




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