Re: Error showing widgets from a thread

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

 



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

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux