|
|
|
|
@ -234,6 +234,7 @@ void on_reboot_accepted(main_window *widgets){
|
|
|
|
|
g_mutex_unlock(&main_config.install_mutex);
|
|
|
|
|
}
|
|
|
|
|
main_config.exit_accepted=1;
|
|
|
|
|
yon_config_restore(widgets);
|
|
|
|
|
while(gtk_events_pending()) gtk_main_iteration();
|
|
|
|
|
if (system("reboot")){};
|
|
|
|
|
|
|
|
|
|
@ -242,12 +243,13 @@ void on_reboot_accepted(main_window *widgets){
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void on_exit_accepted(main_window *){
|
|
|
|
|
void on_exit_accepted(main_window *widgets){
|
|
|
|
|
g_mutex_lock(&main_config.install_mutex);
|
|
|
|
|
if (main_config.install_thread){
|
|
|
|
|
pthread_cancel((pthread_t)main_config.install_thread);
|
|
|
|
|
g_mutex_unlock(&main_config.install_mutex);
|
|
|
|
|
}
|
|
|
|
|
yon_config_restore(widgets);
|
|
|
|
|
main_config.exit_accepted=1;
|
|
|
|
|
while(gtk_events_pending()) gtk_main_iteration();
|
|
|
|
|
}
|
|
|
|
|
@ -265,6 +267,7 @@ gboolean on_yon_exit(GtkWidget *,GdkEvent*, main_window *widgets){
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
yon_config_restore(widgets);
|
|
|
|
|
on_exit_accepted(widgets);
|
|
|
|
|
gtk_main_quit();
|
|
|
|
|
}
|
|
|
|
|
|