if(widgetCount) { gtk_window_set_modal(GTK_WINDOW(widgetStack[widgetCount-1]), 0); gtk_window_set_modal(GTK_WINDOW(widgetStack[widgetCount]), 1);   }
void gtk_register_dialog(GtkWidget *newdialog){	widgetStack[widgetCount]=newdialog;	widgetCount++;}