|
|
|
|
@ -354,14 +354,13 @@ void on_gparted_open(){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void on_reboot_accepted(main_window *widgets){
|
|
|
|
|
void on_reboot_accepted(main_window *){
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
main_config.exit_accepted=1;
|
|
|
|
|
g_signal_emit_by_name(G_OBJECT(widgets->MainWindow),"delete-event");
|
|
|
|
|
while(gtk_events_pending()) gtk_main_iteration();
|
|
|
|
|
if (system("reboot")){};
|
|
|
|
|
}
|
|
|
|
|
@ -373,7 +372,6 @@ void on_exit_accepted(main_window *widgets){
|
|
|
|
|
g_mutex_unlock(&main_config.install_mutex);
|
|
|
|
|
}
|
|
|
|
|
main_config.exit_accepted=1;
|
|
|
|
|
// g_signal_emit_by_name(G_OBJECT(widgets->MainWindow),"delete-event");
|
|
|
|
|
while(gtk_events_pending()) gtk_main_iteration();
|
|
|
|
|
gtk_widget_destroy(widgets->MainWindow);
|
|
|
|
|
}
|
|
|
|
|
|