|
|
|
|
@ -5,7 +5,7 @@ config main_config;
|
|
|
|
|
//functions
|
|
|
|
|
|
|
|
|
|
void on_save_done(main_window *, config_str output, int size){
|
|
|
|
|
char *final_output = yon_char_parsed_to_string(output,size,"");
|
|
|
|
|
char *final_output = yon_char_parsed_to_string(output,size,"\n");
|
|
|
|
|
if (final_output){
|
|
|
|
|
printf("%s\n",final_output);
|
|
|
|
|
free(final_output);
|
|
|
|
|
@ -24,7 +24,7 @@ void on_save_done(main_window *, config_str output, int size){
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
textdomain(LocaleName);
|
|
|
|
|
yon_config_set_ignore(REPOSITORY_parameter);
|
|
|
|
|
// yon_config_set_ignore(REPOSITORY_parameter);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -570,27 +570,26 @@ void on_web_user_check(GtkToggleButton *self, web_publication_add_window *window
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void on_config_save(GtkWidget *, main_window *){
|
|
|
|
|
main_config.save_config=2;
|
|
|
|
|
template_saving_window *window = yon_save_proceed(NULL,YON_CONFIG_BOTH,config_get_command("global"),NULL);
|
|
|
|
|
if (window){};
|
|
|
|
|
main_config.save_config=YON_CONFIG_BOTH;
|
|
|
|
|
yon_save_proceed(NULL,YON_CONFIG_BOTH,config_get_command("global"),NULL);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void on_config_global_save(GtkWidget *, main_window *){
|
|
|
|
|
main_config.save_config=0;
|
|
|
|
|
template_saving_window *window = yon_save_proceed("global",YON_CONFIG_GLOBAL,config_get_command("global"),NULL);
|
|
|
|
|
if (window){};
|
|
|
|
|
void on_config_local_save(GtkWidget *, main_window *){
|
|
|
|
|
main_config.save_config=YON_CONFIG_LOCAL;
|
|
|
|
|
yon_save_proceed("system",YON_CONFIG_LOCAL,config_get_command("system"),NULL);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void on_config_local_save(GtkWidget *, main_window *){
|
|
|
|
|
main_config.save_config=1;
|
|
|
|
|
template_saving_window *window = yon_save_proceed("system",YON_CONFIG_LOCAL,config_get_command("system"),NULL);
|
|
|
|
|
if (window){};
|
|
|
|
|
void on_config_global_save(GtkWidget *, main_window *){
|
|
|
|
|
main_config.save_config=YON_CONFIG_GLOBAL;
|
|
|
|
|
yon_save_proceed("global",YON_CONFIG_GLOBAL,config_get_command("global"),NULL);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void on_config_custom_save(GtkWidget *, main_window *){
|
|
|
|
|
main_config.save_config=1;
|
|
|
|
|
main_config.save_config=YON_CONFIG_LOCAL;
|
|
|
|
|
template_saving_window *window = yon_save_proceed(NULL,YON_CONFIG_CUSTOM,config_get_command("system"),NULL);
|
|
|
|
|
if (window){};
|
|
|
|
|
if (window){};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|