|
|
|
@ -716,6 +716,7 @@ void on_logrotate_save(GtkWidget *self, dictionary *dict){
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),EMPTY_IMPORTANT_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),EMPTY_IMPORTANT_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
GtkTreeIter *lastiter;
|
|
|
|
for (;valid;valid=gtk_tree_model_iter_next(GTK_TREE_MODEL(window->list),&iter)){
|
|
|
|
for (;valid;valid=gtk_tree_model_iter_next(GTK_TREE_MODEL(window->list),&iter)){
|
|
|
|
char *cur_path;
|
|
|
|
char *cur_path;
|
|
|
|
gtk_tree_model_get(GTK_TREE_MODEL(window->list),&iter,0,&cur_path,-1);
|
|
|
|
gtk_tree_model_get(GTK_TREE_MODEL(window->list),&iter,0,&cur_path,-1);
|
|
|
|
@ -724,10 +725,11 @@ void on_logrotate_save(GtkWidget *self, dictionary *dict){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
path_amount++;
|
|
|
|
path_amount++;
|
|
|
|
paths = yon_char_unite(paths,strcmp(paths,"") ? "," : "", cur_path,NULL);
|
|
|
|
paths = yon_char_unite(paths,strcmp(paths,"") ? "," : "", cur_path,NULL);
|
|
|
|
|
|
|
|
lastiter=gtk_tree_iter_copy(&iter);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(!window->paths) {
|
|
|
|
if(!window->paths) {
|
|
|
|
if (matched==path_amount) {
|
|
|
|
if (matched==path_amount) {
|
|
|
|
yon_ubl_status_highlight_incorrect(gtk_widget_get_parent(window->LogPathsTree));
|
|
|
|
yon_ubl_status_list_store_highlight_incorrect(window->list,lastiter);
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),REPEATED_PATHS_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),REPEATED_PATHS_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -1797,7 +1799,7 @@ void on_log_save(GtkWidget *self, dictionary *dict){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
gtk_list_store_set(widgets->list,&iter,0,name,1,pathse,2,&desc ? desc : "",-1);
|
|
|
|
gtk_list_store_set(widgets->list,&iter,0,name,1,pathse,2,&desc ? desc : "",-1);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),EMPTY_IMPORTANT_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
yon_ubl_status_box_spawn(GTK_CONTAINER(window->StatusBox),WRITE_IMPORTANT_LABEL,5,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
yon_ubl_status_highlight_incorrect(window->NameEntry);
|
|
|
|
yon_ubl_status_highlight_incorrect(window->NameEntry);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|