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.

Remember that you can't call GTK stuff directly from a thread.

/Fredrik Arnerup
e97_far e kth se



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