|
|
|
|
@ -6,6 +6,7 @@
|
|
|
|
|
saving section
|
|
|
|
|
==============
|
|
|
|
|
*/
|
|
|
|
|
void yon_exit_window_loaded_config_init(template_saving_window *window, struct loaded_config *current_loaded);
|
|
|
|
|
|
|
|
|
|
gboolean _yon_presave_function_start(struct presave_info *data){
|
|
|
|
|
presave_function(data->presave_argument,data->save_path);
|
|
|
|
|
@ -278,6 +279,18 @@ char *yon_get_compare_config_command(va_list args,char *path,YON_CONFIG_TYPE typ
|
|
|
|
|
return yon_char_is_empty(compare_command)?NULL:compare_command;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void yon_exit_window_loaded_config_init(template_saving_window *window, struct loaded_config *current_loaded){
|
|
|
|
|
GtkTreeIter iter;
|
|
|
|
|
struct loaded_config *current = NULL;
|
|
|
|
|
for_dictionaries(current,current_loaded){
|
|
|
|
|
|
|
|
|
|
char *compare_string = yon_char_unite("\n",(char*)current->data,NULL);
|
|
|
|
|
gtk_list_store_append(window->list,&iter);
|
|
|
|
|
gtk_list_store_set(window->list,&iter,1,current->key,3,(char*)current->data,4,compare_string,6,1,-1);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void yon_save_window_loaded_config_init(template_saving_window *window, struct loaded_config *current_loaded, struct loaded_config *config_compare){
|
|
|
|
|
if (current_loaded){
|
|
|
|
|
struct loaded_config *current = NULL;
|
|
|
|
|
@ -616,12 +629,12 @@ template_saving_window *yon_exit_window_new(){
|
|
|
|
|
config_str current_config = yon_config_get_all_modified(¤t_size); // get INTERNAL config
|
|
|
|
|
|
|
|
|
|
struct loaded_config *current_loaded = yon_config_convert_parameter(current_config,current_size); // convert INTERNAL config into struct
|
|
|
|
|
gtk_tree_view_remove_column(GTK_TREE_VIEW(window->ParametersTree),gtk_tree_view_get_column(GTK_TREE_VIEW(window->ParametersTree),0));
|
|
|
|
|
|
|
|
|
|
yon_save_window_loaded_config_init(window,current_loaded,config_compare);
|
|
|
|
|
yon_save_window_compared_config_init_unfound(window,current_loaded,config_compare);
|
|
|
|
|
yon_exit_window_loaded_config_init(window,current_loaded);
|
|
|
|
|
|
|
|
|
|
if (!yon_save_window_destroy_if_empty(window))
|
|
|
|
|
return NULL;
|
|
|
|
|
|
|
|
|
|
gtk_tree_view_remove_column(GTK_TREE_VIEW(window->ParametersTree),gtk_tree_view_get_column(GTK_TREE_VIEW(window->ParametersTree),0));
|
|
|
|
|
return window;
|
|
|
|
|
}
|