Exemple #1
0
void GridWindow::on_action_file_quit()
{	
	if (ConfirmQuit())
	{
	  	Gtk::Main::quit();
	}
}
Exemple #2
0
void QuitApplication(GtkWidget *empty)
{
	if (db.status != STATUS_IDLE)
	{
		if (ConfirmQuit() == GTK_RESPONSE_NO)
			return;
		
		AbortSession(NULL);
		#ifdef _WIN32
		Sleep(100);
		#else
		usleep(10000);
		#endif
	}
	gtk_main_quit();
}
Exemple #3
0
bool GridWindow::on_delete_event(GdkEventAny *e)
{
	return !ConfirmQuit();
}