Thank u all, 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 _______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list