Will cause gtk to exit completely if it is the only window gtk_widget_destroy(GTK_WIDGET(MainWindow));