Hi Sameer I compiled your code just to get a few semi-colons missing & an error saying button.c:19: error: `delete_event' undeclared (first use in this function) for which you can add this code gint delete_event (GtkWidget *widget, gpointer gdata) { g_print ("Quitting...\n"); gtk_main_quit(); return (FALSE); } The program ran with no segmentation fault. Plz specify the exact case where you getting a problem Cheers, Anupama Chandwani Celunite Soft Technologies 3rd Floor, Business Avenue Koregaon Park Pune, MS 411001 INDIA _______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list