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()
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()