|
|
|
|
@ -717,6 +717,7 @@ void on_logrotate_save(GtkWidget *self, dictionary *dict){
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
GtkTreeIter *lastiter;
|
|
|
|
|
GtkTreeIter *lastitar;
|
|
|
|
|
for (;valid;valid=gtk_tree_model_iter_next(GTK_TREE_MODEL(window->list),&iter)){
|
|
|
|
|
char *cur_path;
|
|
|
|
|
gtk_tree_model_get(GTK_TREE_MODEL(window->list),&iter,0,&cur_path,-1);
|
|
|
|
|
@ -726,10 +727,11 @@ void on_logrotate_save(GtkWidget *self, dictionary *dict){
|
|
|
|
|
path_amount++;
|
|
|
|
|
paths = yon_char_unite(paths,strcmp(paths,"") ? "," : "", cur_path,NULL);
|
|
|
|
|
lastiter=gtk_tree_iter_copy(&iter);
|
|
|
|
|
lastitar=gtk_tree_iter_copy(&iter);
|
|
|
|
|
}
|
|
|
|
|
if(!window->paths) {
|
|
|
|
|
if (matched==path_amount) {
|
|
|
|
|
yon_ubl_status_list_store_highlight_incorrect(window->list,lastiter);
|
|
|
|
|
yon_ubl_status_highlight_incorrect(gtk_widget_get_parent(window->LogPathsTree));
|
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),REPEATED_PATHS_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
@ -740,7 +742,10 @@ void on_logrotate_save(GtkWidget *self, dictionary *dict){
|
|
|
|
|
int so=0;
|
|
|
|
|
config_str paths_parsed = yon_char_parse(paths,&psize,",");
|
|
|
|
|
if (yon_char_parsed_check_repeats(paths_parsed,psize,&fo,&so)){
|
|
|
|
|
yon_ubl_status_highlight_incorrect(gtk_widget_get_parent(window->LogPathsTree));
|
|
|
|
|
gtk_tree_model_get_iter_from_string(GTK_TREE_MODEL(window->list),lastiter,yon_char_from_int(fo));
|
|
|
|
|
gtk_tree_model_get_iter_from_string(GTK_TREE_MODEL(window->list),lastitar,yon_char_from_int(so));
|
|
|
|
|
yon_ubl_status_list_store_highlight_incorrect(window->list,lastiter);
|
|
|
|
|
yon_ubl_status_list_store_highlight_incorrect(window->list,lastitar);
|
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),REPEAT_PATHS_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|