Re: Changing a Label Presentation



>I wanted to fork the tar process off by itself have it show in it's own window
>.

 [ ... ]

>/*	pid = fork(); 
>	if(pid != 0){  
>	    perror("We are in the child");   */	
>	    gtk_window_new(GTK_WINDOW_TOPLEVEL);

you can't do this. the parent and child cannot share access to the
same GTK/GDK/Xlib "connection". you have to use threads for that.

write your tar process as a separate program that uses GTK itself,
then fork-and-exec it.

--p



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