|
|
|
|
@ -356,7 +356,9 @@ template_saving_window *yon_save_proceed(char *path,YON_CONFIG_TYPE type, ...){
|
|
|
|
|
char *compare_name = yon_char_divide_search(compare_value,"=",-1);
|
|
|
|
|
if (!strcmp(compare_name,compare_keys[i])){
|
|
|
|
|
char *cur_section = (char*)yon_dictionary_get(&loaded.dict->first,compare_keys[i])->prev->data;
|
|
|
|
|
gtk_list_store_set(window->list,&iter,2,compare_value,4,rgba_string,6,cur_section,-1);
|
|
|
|
|
char *combined = yon_char_unite("<s>",compare_value,"</s>\n",NULL);
|
|
|
|
|
gtk_list_store_set(window->list,&iter,2,compare_value,4,rgba_string,6,cur_section,7,combined,-1);
|
|
|
|
|
free(combined);
|
|
|
|
|
}
|
|
|
|
|
free(compare_value);
|
|
|
|
|
free(compare_name);
|
|
|
|
|
@ -384,9 +386,11 @@ template_saving_window *yon_save_proceed(char *path,YON_CONFIG_TYPE type, ...){
|
|
|
|
|
if ((value&&!strcmp(value,compare_value))){ //||yon_char_is_empty(compare_value)
|
|
|
|
|
gtk_list_store_set(window->list,&iter,0,0,3,value,5,0,-1);
|
|
|
|
|
} else {
|
|
|
|
|
gtk_list_store_set(window->list,&iter,0,1,5,1,-1);
|
|
|
|
|
if (yon_config_get_status(name)==1){
|
|
|
|
|
gtk_list_store_set(window->list,&iter,0,1,5,1,-1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
found=1;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
@ -396,7 +400,10 @@ template_saving_window *yon_save_proceed(char *path,YON_CONFIG_TYPE type, ...){
|
|
|
|
|
GtkTreeIter itar;
|
|
|
|
|
gtk_list_store_append(window->list,&itar);
|
|
|
|
|
char *combined = yon_char_append("\n",compare_value);
|
|
|
|
|
gtk_list_store_set(window->list,&itar,0,1,1,compare_name,3,compare_value,5,1,6,section,7,combined,-1);
|
|
|
|
|
gtk_list_store_set(window->list,&itar,0,0,1,compare_name,3,compare_value,5,1,6,section,7,combined,-1);
|
|
|
|
|
if (yon_config_get_status(compare_name)==1){
|
|
|
|
|
gtk_list_store_set(window->list,&itar,0,1,-1);
|
|
|
|
|
}
|
|
|
|
|
free(combined);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|