Thank u sir,
now i found the solution. i am not sure is it that right way to do that
but thing is working fine.. what i have done is i have placed these two
statements in the while loop.
if(gtk_events_pending())
gtk_main_iteration();
Naveen