diff --git a/source/ubl-settings-logging.c b/source/ubl-settings-logging.c
index 821dff2..efbd7a2 100644
--- a/source/ubl-settings-logging.c
+++ b/source/ubl-settings-logging.c
@@ -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);
return;
}
+ GtkTreeIter *lastiter;
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);
@@ -724,10 +725,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);
}
if(!window->paths) {
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);
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);
} 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);
return;
}
diff --git a/source/ubl-strings.h b/source/ubl-strings.h
index 51f82b8..95126f1 100644
--- a/source/ubl-strings.h
+++ b/source/ubl-strings.h
@@ -178,6 +178,7 @@
#define REPEATED_PATHS_LABEL _("Same record already exists")
#define EMPTY_IMPORTANT_LABEL _("Empty important field")
#define REPEAT_PATHS_LABEL _("Repeating paths")
+#define WRITE_IMPORTANT_LABEL _("Write down all important fields")
//ubl-settings-logging-logrotate-table.glade
#define SYSTEM_CONFIGURATION_LABEL _("System configuration")
diff --git a/ubl-settings-logging-logrotate.glade b/ubl-settings-logging-logrotate.glade
index 23fbfb5..c292f61 100644
--- a/ubl-settings-logging-logrotate.glade
+++ b/ubl-settings-logging-logrotate.glade
@@ -92,6 +92,10 @@
+
+
+
+