Re: show/hide widgets



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

| IMHO, this is completely the wrong way to write a GUI. In particular:
|
|
|>~  while(showWindow) {
|>~    pthread_mutex_lock(&drawing);
|>~    if(showWindow) {
|>~      gtk_main_iteration_do(FALSE);
|>~    }
|>~    pthread_mutex_unlock(&drawing);
|>~    usleep(10000);
|>~  }

I agree with you party. But this program has to process datas that come
in every cycle and I have to synchronize it. I tried it with the
standart gtk_main() function and my program crashed. I also found
somewhere that GTK in NOT threadsave, so I had to think of a workaround
... and this works (for me, at least).

Christopher
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBbotBzt/GDRHk1XARApQ6AKCwxa/DqJY0orlABuifkWJAzIDOHQCfRytx
AB6+RobvyNY5OFjBtQ537zM=
=jmOt
-----END PGP SIGNATURE-----



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