Re: socket and gtk problem, help! writes: 
> there, gtk_main(); was put in BuildGUI. The program suspend when it goes 
> to gtk_main(), so the do-while loop does not take effect .I know that 
> gtk_main() raise a message loop and do-while is another loop . How can I 
> make them work together? MultiThread program maybe a way to go and I tried 
> but failed when i put some gtk-about code in DoSomething(). How should I 
> do then? 

Use gdk_input_add() to add the socket file descriptor to the main


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