|
|
|
@ -62,25 +62,28 @@ void on_config_local_load(GtkWidget *,main_window *widgets){
|
|
|
|
yon_load_proceed(YON_CONFIG_LOCAL);
|
|
|
|
yon_load_proceed(YON_CONFIG_LOCAL);
|
|
|
|
main_config.load_mode=YON_CONFIG_LOCAL;
|
|
|
|
main_config.load_mode=YON_CONFIG_LOCAL;
|
|
|
|
yon_main_window_update_locale(widgets);
|
|
|
|
yon_main_window_update_locale(widgets);
|
|
|
|
yon_page_init(widgets,gtk_notebook_get_current_page(GTK_NOTEBOOK(widgets->Notebook)));
|
|
|
|
yon_navigation_buttons_set_sensetiveness(widgets);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void on_config_custom_load(GtkWidget *,main_window *){
|
|
|
|
void on_config_custom_load(GtkWidget *,main_window *widgets){
|
|
|
|
char *temp_custom_path = NULL;
|
|
|
|
char *temp_custom_path = NULL;
|
|
|
|
yon_load_proceed(YON_CONFIG_CUSTOM);
|
|
|
|
yon_load_proceed(YON_CONFIG_CUSTOM);
|
|
|
|
if (!yon_char_is_empty(main_config.config_load_path)){
|
|
|
|
if (!yon_char_is_empty(main_config.config_load_path)){
|
|
|
|
main_config.load_mode=YON_CONFIG_CUSTOM;
|
|
|
|
main_config.load_mode=YON_CONFIG_CUSTOM;
|
|
|
|
free(temp_custom_path);
|
|
|
|
free(temp_custom_path);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
yon_navigation_buttons_set_sensetiveness(widgets);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void on_config_custom_load_last(GtkWidget *,main_window *){
|
|
|
|
void on_config_custom_load_last(GtkWidget *,main_window *widgets){
|
|
|
|
yon_config_clean();
|
|
|
|
yon_config_clean();
|
|
|
|
if (!yon_char_is_empty(config_get_default_command))
|
|
|
|
if (!yon_char_is_empty(config_get_default_command))
|
|
|
|
yon_config_load_config(YON_CONFIG_DEFAULT,config_get_default_command,NULL);
|
|
|
|
yon_config_load_config(YON_CONFIG_DEFAULT,config_get_default_command,NULL);
|
|
|
|
char *command = config_get_command(main_config.config_load_path);
|
|
|
|
char *command = config_get_command(main_config.config_load_path);
|
|
|
|
yon_config_load_config(YON_CONFIG_CUSTOM,command,NULL);
|
|
|
|
yon_config_load_config(YON_CONFIG_CUSTOM,command,NULL);
|
|
|
|
main_config.load_mode=YON_CONFIG_CUSTOM;
|
|
|
|
main_config.load_mode=YON_CONFIG_CUSTOM;
|
|
|
|
|
|
|
|
int page = gtk_notebook_get_current_page(GTK_NOTEBOOK(widgets->Notebook));
|
|
|
|
|
|
|
|
yon_page_init(widgets,page);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void on_config_global_local_save(GtkWidget *,main_window *widgets){
|
|
|
|
void on_config_global_local_save(GtkWidget *,main_window *widgets){
|
|
|
|
|