|
|
|
|
@ -21,24 +21,34 @@ void on_save_done(main_window *, config_str output, int size){
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void on_config_global_local_save(GtkWidget *, main_window *){
|
|
|
|
|
void yon_interface_save(main_window *widgets){
|
|
|
|
|
if (gtk_switch_get_active(GTK_SWITCH(widgets->DefaultLayoutsSwitch))){
|
|
|
|
|
yon_config_remove_by_key(keyboard_layout_parameter);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void on_config_global_local_save(GtkWidget *, main_window *widgets){
|
|
|
|
|
yon_interface_save(widgets);
|
|
|
|
|
main_config.save_config=YON_CONFIG_BOTH;
|
|
|
|
|
yon_save_proceed(NULL,YON_CONFIG_BOTH,config_get_global_command,NULL);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void on_config_local_save(GtkWidget *, main_window *){
|
|
|
|
|
void on_config_local_save(GtkWidget *, main_window *widgets){
|
|
|
|
|
yon_interface_save(widgets);
|
|
|
|
|
main_config.save_config=YON_CONFIG_LOCAL;
|
|
|
|
|
yon_save_proceed("system",YON_CONFIG_LOCAL,config_get_local_command,NULL);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void on_config_global_save(GtkWidget *, main_window *){
|
|
|
|
|
void on_config_global_save(GtkWidget *, main_window *widgets){
|
|
|
|
|
yon_interface_save(widgets);
|
|
|
|
|
main_config.save_config=YON_CONFIG_GLOBAL;
|
|
|
|
|
yon_save_proceed("global",YON_CONFIG_GLOBAL,config_get_global_command,NULL);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void on_config_custom_save(GtkWidget *, main_window *){
|
|
|
|
|
void on_config_custom_save(GtkWidget *, main_window *widgets){
|
|
|
|
|
yon_interface_save(widgets);
|
|
|
|
|
main_config.save_config=YON_CONFIG_LOCAL;
|
|
|
|
|
template_saving_window *window = yon_save_proceed(NULL,YON_CONFIG_CUSTOM,yon_config_get_custom_command("system"),NULL);
|
|
|
|
|
if (window){};
|
|
|
|
|
|