Fixed default layouts setting

pull/17/head
parent 8a50520e8e
commit dae38fab19
No known key found for this signature in database
GPG Key ID: FF1D842BF4DDE92B

@ -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){};

@ -275,4 +275,5 @@ layouts_window *yon_font_window_new();
void yon_font_open(GtkWidget *,main_window *widgets);
void on_keymaps_selection_changed(GtkWidget *,layouts_window *window);
void on_font_accept(GtkWidget *, layouts_window *window);
void on_font_selection_changed(GtkWidget *,layouts_window *window);
void on_font_selection_changed(GtkWidget *,layouts_window *window);
void yon_interface_save(main_window *widgets);
Loading…
Cancel
Save