Re: Error showing widgets from a thread



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> I have a problem where some widgets do not show up after a
> gtk_widget_show() in a second thread. Below is a small test case.
> 
> In the main program a notebook with two pages is created. On the second
> page is a scrolled window with a viewport, a vbox, and a button. In a
> second thread a second button is added to the vbox inside the viewport.

I am not quite sure whether this could cause the problem, but have you
considered calling gdk_flush right before gdk_threads_leave to send any
pending requests to the X server?

 -- armin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEsldBhOtxKlDYm6cRAiliAJ9yWTjxksaylewJaJgQ1X+DwsfPNwCffR85
pGJ2GugzPfMQCDwYK8SfYWI=
=XKDn
-----END PGP SIGNATURE-----



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