Re: can't create and show GtkWidget in thread
- From: "Leon Tsai" <leon740727 yahoo com tw>
- To: "Paul Davis" <pbd Op Net>
- Cc: <gtk-list gnome org>
- Subject: Re: can't create and show GtkWidget in thread
- Date: Sat, 22 Sep 2001 18:10:57 +0800
I try this yestoday, but I just can't call gtk_widget_show()
to a top level window in another threads. I saw the source
code, gtk seem to show a widget by emit a signal to the
widget. I guess the problem is here, is it?
Leon
> >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
>
> "GTK+" functions are named "gtk_something".
> If its called
> gtk_*
> gdk_*
> g_*
> then you should consider it necessary to surround the calls to it/them
> with a lock acquisition and release. i'm not totally sure about the
> g_* functions, but i think this is true even there.
>
> [ for newish readers: this only applies when there are multiple
> threads that make calls to functions from GTK/GDK/GLIB ]
_________________________________________________________
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]