Re: can't create and show GtkWidget in thread



Thanks for your help. I have seen the FAQ, the example code just
call the gtk_label_set_text() in thread, but I want to call
gtk_widget_show()
in thread, can I? Is the gtk_widget_show a GTK+ functions? thanks

Leon

> >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.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





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