|
|
|
|
@ -326,12 +326,22 @@ void *on_config_save(void *){
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
char* yon_debug_output(char *pattern,char*text);
|
|
|
|
|
char* yon_debug_output(char *pattern,char*text){
|
|
|
|
|
if (main_config.debug_mode){
|
|
|
|
|
printf(pattern,text);
|
|
|
|
|
}
|
|
|
|
|
return text;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void *yon_installation_start(main_window *widgets);
|
|
|
|
|
void *yon_installation_start(main_window *widgets){
|
|
|
|
|
if (!main_config.install_complete){
|
|
|
|
|
if (system(start_fast_install_command)){
|
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(widgets->StatusBox),INSTALLATION_ERROR,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
}
|
|
|
|
|
yon_debug_output("%s\n","SUCCESS");
|
|
|
|
|
main_config.install_thread=NULL;
|
|
|
|
|
main_config.install_complete=1;
|
|
|
|
|
gtk_notebook_set_current_page(GTK_NOTEBOOK(widgets->Notebook),YON_PAGE_COMPLETION);
|
|
|
|
|
@ -790,7 +800,11 @@ void on_page_navigation_clicked(GtkWidget *self, main_window *widgets){
|
|
|
|
|
} else {
|
|
|
|
|
yon_config_remove_by_key(xkboptions_parameter);
|
|
|
|
|
}
|
|
|
|
|
gtk_notebook_set_current_page(GTK_NOTEBOOK(widgets->Notebook),YON_PAGE_INSTALLATION);
|
|
|
|
|
if (!main_config.install_complete){
|
|
|
|
|
gtk_notebook_set_current_page(GTK_NOTEBOOK(widgets->Notebook),YON_PAGE_INSTALLATION);
|
|
|
|
|
} else {
|
|
|
|
|
gtk_notebook_set_current_page(GTK_NOTEBOOK(widgets->Notebook),YON_PAGE_COMPLETION);
|
|
|
|
|
}
|
|
|
|
|
if (gtk_progress_bar_get_fraction(GTK_PROGRESS_BAR(widgets->InstallationProgress))>0.9){
|
|
|
|
|
pthread_t tid;
|
|
|
|
|
pthread_create(&tid,NULL,on_setup_system_configuration,NULL);
|
|
|
|
|
|