|
|
|
@ -111,7 +111,7 @@ void yon_interface_save(){
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 1:yon_config_register(INTEGRATEDVGA,INTEGRATEDVGA_command,"no");
|
|
|
|
case 1:yon_config_register(INTEGRATEDVGA,INTEGRATEDVGA_command,"no");
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case 2:yon_config_register(INTEGRATEDVGA,INTEGRATEDVGA_command,"yes ");
|
|
|
|
case 2:yon_config_register(INTEGRATEDVGA,INTEGRATEDVGA_command,"yes");
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -151,7 +151,7 @@ void yon_interface_update(){
|
|
|
|
else if (!yon_char_is_empty(autodrivers)&&!strcmp(autodrivers,"no"))
|
|
|
|
else if (!yon_char_is_empty(autodrivers)&&!strcmp(autodrivers,"no"))
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->AutoDriverCombo),1);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->AutoDriverCombo),1);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->AutoDriverCombo),0);
|
|
|
|
gtk_combo_box_set_active_id(GTK_COMBO_BOX(main_config.widgets->AutoDriverCombo)," ");
|
|
|
|
|
|
|
|
|
|
|
|
if (!yon_char_is_empty(freedrivers)&&!strcmp(freedrivers,"yes"))
|
|
|
|
if (!yon_char_is_empty(freedrivers)&&!strcmp(freedrivers,"yes"))
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->FreeDriverCombo),1);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->FreeDriverCombo),1);
|
|
|
|
@ -162,12 +162,12 @@ void yon_interface_update(){
|
|
|
|
else if (!yon_char_is_empty(freedrivers)&&!strcmp(freedrivers,"no"))
|
|
|
|
else if (!yon_char_is_empty(freedrivers)&&!strcmp(freedrivers,"no"))
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->FreeDriverCombo),4);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->FreeDriverCombo),4);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->FreeDriverCombo),0);
|
|
|
|
gtk_combo_box_set_active_id(GTK_COMBO_BOX(main_config.widgets->FreeDriverCombo)," ");
|
|
|
|
|
|
|
|
|
|
|
|
if (!yon_char_is_empty(dpi)&&!strcmp(dpi,"auto"))
|
|
|
|
if (!yon_char_is_empty(dpi)&&!strcmp(dpi,"auto"))
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->DisplayScalingCombo),1);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->DisplayScalingCombo),1);
|
|
|
|
else if (yon_char_is_empty(dpi))
|
|
|
|
else if (yon_char_is_empty(dpi))
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->DisplayScalingCombo),0);
|
|
|
|
gtk_combo_box_set_active_id(GTK_COMBO_BOX(main_config.widgets->DisplayScalingCombo)," ");
|
|
|
|
else{
|
|
|
|
else{
|
|
|
|
if (!strcmp(dpi,"2K")||!strcmp(dpi,"4K")){
|
|
|
|
if (!strcmp(dpi,"2K")||!strcmp(dpi,"4K")){
|
|
|
|
gtk_combo_box_set_active_id(GTK_COMBO_BOX(main_config.widgets),dpi);
|
|
|
|
gtk_combo_box_set_active_id(GTK_COMBO_BOX(main_config.widgets),dpi);
|
|
|
|
@ -181,14 +181,14 @@ void yon_interface_update(){
|
|
|
|
else if (!yon_char_is_empty(failsafenvidia)&&!strcmp(failsafenvidia,"no"))
|
|
|
|
else if (!yon_char_is_empty(failsafenvidia)&&!strcmp(failsafenvidia,"no"))
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->FailsafeNvidiaCombo),1);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->FailsafeNvidiaCombo),1);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->FailsafeNvidiaCombo),0);
|
|
|
|
gtk_combo_box_set_active_id(GTK_COMBO_BOX(main_config.widgets->FailsafeNvidiaCombo)," ");
|
|
|
|
|
|
|
|
|
|
|
|
if (!yon_char_is_empty(failsafeati)&&!strcmp(failsafeati,"fbdev"))
|
|
|
|
if (!yon_char_is_empty(failsafeati)&&!strcmp(failsafeati,"fbdev"))
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->FailsafeAMDCombo),2);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->FailsafeAMDCombo),2);
|
|
|
|
else if (!yon_char_is_empty(failsafeati)&&!strcmp(failsafeati,"no"))
|
|
|
|
else if (!yon_char_is_empty(failsafeati)&&!strcmp(failsafeati,"no"))
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->FailsafeAMDCombo),1);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->FailsafeAMDCombo),1);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->FailsafeAMDCombo),0);
|
|
|
|
gtk_combo_box_set_active_id(GTK_COMBO_BOX(main_config.widgets->FailsafeAMDCombo)," ");
|
|
|
|
|
|
|
|
|
|
|
|
if (!yon_char_is_empty(optirun)){
|
|
|
|
if (!yon_char_is_empty(optirun)){
|
|
|
|
if (strcmp(optirun,"no")){
|
|
|
|
if (strcmp(optirun,"no")){
|
|
|
|
@ -198,9 +198,9 @@ void yon_interface_update(){
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->OptirunCombo),1);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->OptirunCombo),1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (yon_char_is_empty(optirun))
|
|
|
|
} else if (yon_char_is_empty(optirun))
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->OptirunCombo),0);
|
|
|
|
gtk_combo_box_set_active_id(GTK_COMBO_BOX(main_config.widgets->OptirunCombo)," ");
|
|
|
|
else
|
|
|
|
else
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->OptirunCombo),0);
|
|
|
|
gtk_combo_box_set_active_id(GTK_COMBO_BOX(main_config.widgets->OptirunCombo)," ");
|
|
|
|
|
|
|
|
|
|
|
|
if (!yon_char_is_empty(primusrun)){
|
|
|
|
if (!yon_char_is_empty(primusrun)){
|
|
|
|
if (strcmp(primusrun,"no")){
|
|
|
|
if (strcmp(primusrun,"no")){
|
|
|
|
@ -210,23 +210,23 @@ void yon_interface_update(){
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->PrimusrunCombo),1);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->PrimusrunCombo),1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else if (yon_char_is_empty(primusrun))
|
|
|
|
} else if (yon_char_is_empty(primusrun))
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->PrimusrunCombo),0);
|
|
|
|
gtk_combo_box_set_active_id(GTK_COMBO_BOX(main_config.widgets->PrimusrunCombo)," ");
|
|
|
|
else
|
|
|
|
else
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->PrimusrunCombo),0);
|
|
|
|
gtk_combo_box_set_active_id(GTK_COMBO_BOX(main_config.widgets->PrimusrunCombo)," ");
|
|
|
|
|
|
|
|
|
|
|
|
if (!yon_char_is_empty(dpms)&&!strcmp(dpms,"dpms"))
|
|
|
|
if (!yon_char_is_empty(dpms)&&!strcmp(dpms,"dpms"))
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->DontSwitchDisplaysOffCombo),2);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->DontSwitchDisplaysOffCombo),2);
|
|
|
|
else if (!yon_char_is_empty(dpms)&&!strcmp(dpms,"nodpms"))
|
|
|
|
else if (!yon_char_is_empty(dpms)&&!strcmp(dpms,"nodpms"))
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->DontSwitchDisplaysOffCombo),1);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->DontSwitchDisplaysOffCombo),1);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->DontSwitchDisplaysOffCombo),0);
|
|
|
|
gtk_combo_box_set_active_id(GTK_COMBO_BOX(main_config.widgets->DontSwitchDisplaysOffCombo)," ");
|
|
|
|
|
|
|
|
|
|
|
|
if (!yon_char_is_empty(discrete)&&!strcmp(discrete,"yes"))
|
|
|
|
if (!yon_char_is_empty(discrete)&&!strcmp(discrete,"yes"))
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->DisplayDiscreteOnly),2);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->DisplayDiscreteOnly),2);
|
|
|
|
else if (!yon_char_is_empty(discrete)&&!strcmp(discrete,"no"))
|
|
|
|
else if (!yon_char_is_empty(discrete)&&!strcmp(discrete,"no"))
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->DisplayDiscreteOnly),1);
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->DisplayDiscreteOnly),1);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(main_config.widgets->DisplayDiscreteOnly),0);
|
|
|
|
gtk_combo_box_set_active_id(GTK_COMBO_BOX(main_config.widgets->DisplayDiscreteOnly)," ");
|
|
|
|
|
|
|
|
|
|
|
|
yon_monitor_view_update();
|
|
|
|
yon_monitor_view_update();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -875,6 +875,7 @@ template_main_window *yon_main_window_complete(main_window *widgets){
|
|
|
|
{
|
|
|
|
{
|
|
|
|
yon_combo_box_set_default(GTK_COMBO_BOX_TEXT(widgets->PrimusrunCombo),PRIMUSRUN_command,yon_primusrun_default);
|
|
|
|
yon_combo_box_set_default(GTK_COMBO_BOX_TEXT(widgets->PrimusrunCombo),PRIMUSRUN_command,yon_primusrun_default);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
while(gtk_events_pending()) gtk_main_iteration();
|
|
|
|
yon_adapter_window_setup(widgets);
|
|
|
|
yon_adapter_window_setup(widgets);
|
|
|
|
|
|
|
|
|
|
|
|
yon_save_window_set_postsave_function(on_save_done,widgets);
|
|
|
|
yon_save_window_set_postsave_function(on_save_done,widgets);
|
|
|
|
|