Re: can't create and show GtkWidget in thread



>I want to create and show a dialog in another thread.
>This thread keep listening to a socket. when remote
>server close connect, it will popup a dialog to tell user.
>But I can't do it, always get error.
>Can thread create and show a widget?

1) yes, it can.
2) read the FAQ's answer to questions about threads. unless
   you use locks and initialize the glib thread system,
   only a single thread can use GTK+ functions.

--p




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