|
|
|
@ -962,6 +962,11 @@ logrotate_configure_window *yon_logrotate_window_new(char *paths, logrotate_wind
|
|
|
|
yon_gtk_combo_box_fill(window->CreateLogUserCombo,users,usize);
|
|
|
|
yon_gtk_combo_box_fill(window->CreateLogUserCombo,users,usize);
|
|
|
|
yon_gtk_combo_box_fill(window->RotationAtUserCombo,users,usize);
|
|
|
|
yon_gtk_combo_box_fill(window->RotationAtUserCombo,users,usize);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (int i=0;i<main_config.groups_size;i++){
|
|
|
|
|
|
|
|
gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(window->RotationAtGroupCombo),main_config.groups[i]);
|
|
|
|
|
|
|
|
gtk_combo_box_text_append_text(GTK_COMBO_BOX_TEXT(window->CreateGroupCombo),main_config.groups[i]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (paths){
|
|
|
|
if (paths){
|
|
|
|
int size;
|
|
|
|
int size;
|
|
|
|
GtkTreeIter iter;
|
|
|
|
GtkTreeIter iter;
|
|
|
|
@ -1993,6 +1998,11 @@ main_window *setup_window(){
|
|
|
|
yon_window_config_add_listener(g_list_nth_data(list,i),yon_char_append("servicecolumn",yon_char_from_int(i)),"fixed-width",YON_TYPE_INT);
|
|
|
|
yon_window_config_add_listener(g_list_nth_data(list,i),yon_char_append("servicecolumn",yon_char_from_int(i)),"fixed-width",YON_TYPE_INT);
|
|
|
|
// yon_gtk_column_minimal_fixed_size_set((GtkTreeViewColumn*)g_list_nth_data(list,i));
|
|
|
|
// yon_gtk_column_minimal_fixed_size_set((GtkTreeViewColumn*)g_list_nth_data(list,i));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
main_config.groups = yon_file_open(group_list_path,&main_config.groups_size);
|
|
|
|
|
|
|
|
for (int i=0;i<main_config.groups_size;i++){
|
|
|
|
|
|
|
|
yon_char_divide_search_self(main_config.groups[i],":",-1);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Widget registration for config monitoring | Регистрация виджетов для мониторинга конфига */
|
|
|
|
/* Widget registration for config monitoring | Регистрация виджетов для мониторинга конфига */
|
|
|
|
// yon_window_config_add_custom_parameter(widgets->HeadInfoLabel,"head-text","label",YON_TYPE_STRING);
|
|
|
|
// yon_window_config_add_custom_parameter(widgets->HeadInfoLabel,"head-text","label",YON_TYPE_STRING);
|
|
|
|
|