|
|
|
@ -1104,6 +1104,7 @@ void on_logrotate_save(GtkWidget *, dictionary *dict){
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(window->RotationCheck))){
|
|
|
|
|
char *user_rotate = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(window->RotationAtUserCombo));
|
|
|
|
|
char *group_rotate = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(window->RotationAtGroupCombo));
|
|
|
|
|
if (!yon_char_is_empty(user_rotate)&&!yon_char_is_empty(group_rotate)){
|
|
|
|
@ -1111,6 +1112,7 @@ void on_logrotate_save(GtkWidget *, dictionary *dict){
|
|
|
|
|
if (gtk_combo_box_get_active(GTK_COMBO_BOX(window->RotationAtGroupCombo))==0) group_rotate = "root";
|
|
|
|
|
su = yon_char_unite("su ",user_rotate," ",group_rotate,NULL);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int error_processing = gtk_combo_box_get_active(GTK_COMBO_BOX(window->ErrorProcessingCombo));
|
|
|
|
|
if (error_processing==0|| error_processing==1) {
|
|
|
|
@ -1387,6 +1389,7 @@ logrotate_configure_window *yon_logrotate_window_new(char *paths, logrotate_wind
|
|
|
|
|
window->FileAmountCombo=yon_gtk_builder_get_widget(builder,"FileAmountCombo");
|
|
|
|
|
window->FileAmountEntry=yon_gtk_builder_get_widget(builder,"FileAmountEntry");
|
|
|
|
|
window->FileAmountButton=yon_gtk_builder_get_widget(builder,"FileAmountButton");
|
|
|
|
|
window->RotationCheck=yon_gtk_builder_get_widget(builder,"RotationCheck");
|
|
|
|
|
window->RotationAtUserCombo=yon_gtk_builder_get_widget(builder,"RotationAtUserCombo");
|
|
|
|
|
window->RotationAtGroupCombo=yon_gtk_builder_get_widget(builder,"RotationAtGroupCombo");
|
|
|
|
|
window->ErrorProcessingCombo=yon_gtk_builder_get_widget(builder,"ErrorProcessingCombo");
|
|
|
|
@ -1496,6 +1499,8 @@ logrotate_configure_window *yon_logrotate_window_new(char *paths, logrotate_wind
|
|
|
|
|
|
|
|
|
|
g_signal_connect(G_OBJECT(window->RotateSizeMaxBeforeTimeCheck),"toggled",G_CALLBACK(yon_gtk_widget_set_sensitive_from_toggle_button),window->RotateSizeMaxBeforeTimeSpin);
|
|
|
|
|
g_signal_connect(G_OBJECT(window->RotateSizeMaxBeforeTimeCheck),"toggled",G_CALLBACK(yon_gtk_widget_set_sensitive_from_toggle_button),window->RotateSizeMaxBeforeTimeCombo);
|
|
|
|
|
g_signal_connect(G_OBJECT(window->RotationCheck),"toggled",G_CALLBACK(yon_gtk_widget_set_sensitive_from_toggle_button),window->RotationAtUserCombo);
|
|
|
|
|
g_signal_connect(G_OBJECT(window->RotationCheck),"toggled",G_CALLBACK(yon_gtk_widget_set_sensitive_from_toggle_button),window->RotationAtGroupCombo);
|
|
|
|
|
|
|
|
|
|
g_signal_connect(G_OBJECT(window->CreateLogCombo),"changed",G_CALLBACK(on_combo_activate_second),window->CreateLogUserCombo);
|
|
|
|
|
g_signal_connect(G_OBJECT(window->CreateLogCombo),"changed",G_CALLBACK(on_combo_activate_second),window->CreateGroupCombo);
|
|
|
|
|