Example #1
0
void MainBoxDestroy() {
  if(progressboxwindow != NULL) {
    ProgressBoxDestroy();
  } // ENDIF- Do we have a Progress Window still?

  if(mainboxwindow != NULL) {
    EndDialog(mainboxwindow, FALSE);
    mainboxwindow = NULL;
  } // ENDIF- Do we have a Main Window still?
} // END MainBoxDestroy()
Example #2
0
gint MainBoxCancelEvent(GtkWidget *widget, GdkEvent event, gpointer data)
{
	mainbox.stop = 1; // Halt all long processess...

	MessageBoxDestroy();
	ProgressBoxDestroy();
	MainBoxDestroy();

	gtk_main_quit();
	return(TRUE);
} // END MainBoxCancelEvent()