Problem in closing a window



hi,
    I am having 2 windows each in different PCs.. when i press exit button in one window (say W1), the other window(say W2) should close... I am not using gtk_main() in W2 application.. Instead i'm using gtk_main_iteration() inside a while loop..

while(!ExitFlag)
{
    gtk_main_iteration();
}

the ExitFlag in W2 Apllication will be set once the Exit button is pressed in W1.
    The flag is set properly, but it is not coming out of the while loop till i move the mouse or press some key..
    I think it is not coming out of gtk_main_iteration() itself. Is there any way to solve this problem?

It is assumed that the window will be closed once the control comes out of the while loop.

- Karthik


_____________________________________________________
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com








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