|
|
|
@ -811,7 +811,7 @@ void on_logrotate_save(GtkWidget *self, dictionary *dict){
|
|
|
|
if (!yon_char_is_empty(endwork)){
|
|
|
|
if (!yon_char_is_empty(endwork)){
|
|
|
|
endwork = yon_char_replace(endwork,"\"","=--");
|
|
|
|
endwork = yon_char_replace(endwork,"\"","=--");
|
|
|
|
endwork = yon_char_replace(endwork,"=--","\\\"");
|
|
|
|
endwork = yon_char_replace(endwork,"=--","\\\"");
|
|
|
|
preremove = yon_char_append("preremove,",after);
|
|
|
|
preremove = yon_char_append("preremove,",endwork);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!yon_char_is_empty(firstaction)||!yon_char_is_empty(after_once)||!yon_char_is_empty(before)||!yon_char_is_empty(after))
|
|
|
|
if (!yon_char_is_empty(firstaction)||!yon_char_is_empty(after_once)||!yon_char_is_empty(before)||!yon_char_is_empty(after))
|
|
|
|
endscript = "endscript";
|
|
|
|
endscript = "endscript";
|
|
|
|
@ -1116,10 +1116,10 @@ logrotate_configure_window *yon_logrotate_window_new(char *paths, logrotate_wind
|
|
|
|
char *value = parsed[i+1];
|
|
|
|
char *value = parsed[i+1];
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(window->CommandAfterEntry),value);
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(window->CommandAfterEntry),value);
|
|
|
|
i++;
|
|
|
|
i++;
|
|
|
|
// }else if (!strcmp(parsed[i],"preremove")){
|
|
|
|
}else if (!strcmp(parsed[i],"preremove")){
|
|
|
|
// char *value = parsed[i+1];
|
|
|
|
char *value = parsed[i+1];
|
|
|
|
// gtk_entry_set_text(GTK_ENTRY(window->CommandBeforeOnceEntry),value);
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(window->EndworkCommandEntry),value);
|
|
|
|
// i++;
|
|
|
|
i++;
|
|
|
|
}else if (strstr(parsed[i],"rotate")){
|
|
|
|
}else if (strstr(parsed[i],"rotate")){
|
|
|
|
char *value = strstr(parsed[i]," ")+1;
|
|
|
|
char *value = strstr(parsed[i]," ")+1;
|
|
|
|
gtk_spin_button_set_value(GTK_SPIN_BUTTON(window->FileAmountSpin),atol(value));
|
|
|
|
gtk_spin_button_set_value(GTK_SPIN_BUTTON(window->FileAmountSpin),atol(value));
|
|
|
|
|