Re: GTK Error handling..



New process, use g_spawn_with_pipes (or how is it called) and just pass it through pipe.

On 11/24/2010 02:35 PM, Champ Clark III [Softwink] wrote:
On Wed, Nov 24, 2010 at 03:22:56PM +0200, Dov Grobgeld wrote:
If all you want is a popup, then you might as well create a new process
instead of a new thread. There is no advantage of using a thread as it does
not seem like you want to pass any info between the window and the
monitoring loop. Further, the way you described it, if more than one event
occurs, then you will be spawning two threads that does calls into GUI. This
is a big no-no as gtk is not multi-threaded, and only a single thread may do
graphics related calls.

        First off,  thanks for all the responses.

        The only information that needs to be passed is from the
"monitor loop" (the alert information) to the "thread" that creates the
"popup" window.   That part is complete,  but considering the error
handling,   I'm reconsidering how I'm doing this.    It looks like
I'll probably create a new process to deal with the "popup".




_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



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