|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
main_window cfg_main_gui;
|
|
|
|
|
custom_window cfg_custom_gui;
|
|
|
|
|
config_settings_gui main_config;
|
|
|
|
|
config_all* all_config;
|
|
|
|
|
config_all all_config;
|
|
|
|
|
int index_selected = 0;
|
|
|
|
|
|
|
|
|
|
void wrapper_filters_user_show() {
|
|
|
|
@ -22,11 +22,11 @@ void wrapper_filters_project_show() {
|
|
|
|
|
|
|
|
|
|
void wrapper_add_user_show() {
|
|
|
|
|
char* activ_text = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(cfg_custom_gui.user.comboBox));
|
|
|
|
|
activ_text= yon_char_divide_search(activ_text, " ", -1);
|
|
|
|
|
activ_text = yon_char_divide_search(activ_text, " ", -1);
|
|
|
|
|
set_disk(activ_text);
|
|
|
|
|
set_temp_menu("usrquota", "add");
|
|
|
|
|
set_all_config(all_config);
|
|
|
|
|
set_vector(&all_config->v_user);
|
|
|
|
|
set_all_config(&all_config);
|
|
|
|
|
set_vector(&all_config.v_user);
|
|
|
|
|
temp_show(NULL, glade_path);
|
|
|
|
|
int i = 0;
|
|
|
|
|
g_signal_connect(G_OBJECT(get_widget_temp()->btnSaveTempSave),"clicked",G_CALLBACK(entry_user_disk),&i);
|
|
|
|
@ -39,10 +39,10 @@ void wrapper_edit_user_show() {
|
|
|
|
|
set_disk(activ_text);
|
|
|
|
|
set_temp_menu("usrquota", "edit");
|
|
|
|
|
temp_set_index(index);
|
|
|
|
|
set_all_config(all_config);
|
|
|
|
|
set_all_config(&all_config);
|
|
|
|
|
temp_show(NULL, glade_path);
|
|
|
|
|
set_vector(&all_config->v_user);
|
|
|
|
|
set_edit_gui_data_base(all_config, index);
|
|
|
|
|
set_vector(&all_config.v_user);
|
|
|
|
|
set_edit_gui_data_base(&all_config, index);
|
|
|
|
|
int i = 0;
|
|
|
|
|
g_signal_connect(G_OBJECT(get_widget_temp()->btnSaveTempSave),"clicked",G_CALLBACK(entry_user_disk),&i);
|
|
|
|
|
}
|
|
|
|
@ -52,8 +52,8 @@ void wrapper_add_group_show() {
|
|
|
|
|
activ_text = yon_char_divide_search(activ_text, " ", -1);
|
|
|
|
|
set_disk(activ_text);
|
|
|
|
|
set_temp_menu("grpquota", "add");
|
|
|
|
|
set_all_config(all_config);
|
|
|
|
|
set_vector(&all_config->v_group);
|
|
|
|
|
set_all_config(&all_config);
|
|
|
|
|
set_vector(&all_config.v_group);
|
|
|
|
|
temp_show(NULL, glade_path);
|
|
|
|
|
int i = 0;
|
|
|
|
|
g_signal_connect(G_OBJECT(get_widget_temp()->btnSaveTempSave),"clicked",G_CALLBACK(entry_groups_disk),&i);
|
|
|
|
@ -65,17 +65,17 @@ void wrapper_edit_group_show() {
|
|
|
|
|
set_disk(activ_text);
|
|
|
|
|
set_temp_menu("grpquota", "edit");
|
|
|
|
|
temp_set_index(index);
|
|
|
|
|
set_all_config(all_config);
|
|
|
|
|
set_vector(&all_config->v_group);
|
|
|
|
|
set_all_config(&all_config);
|
|
|
|
|
set_vector(&all_config.v_group);
|
|
|
|
|
temp_show(NULL, glade_path);
|
|
|
|
|
set_edit_gui_data_base(all_config, index);
|
|
|
|
|
set_edit_gui_data_base(&all_config, index);
|
|
|
|
|
int i = 0;
|
|
|
|
|
g_signal_connect(G_OBJECT(get_widget_temp()->btnSaveTempSave),"clicked",G_CALLBACK(entry_groups_disk),&i);
|
|
|
|
|
}
|
|
|
|
|
void wrapper_add_project_show() {
|
|
|
|
|
set_temp_menu("prjquota", "add");
|
|
|
|
|
set_all_config(all_config);
|
|
|
|
|
set_vector(&all_config->v_project);
|
|
|
|
|
set_all_config(&all_config);
|
|
|
|
|
set_vector(&all_config.v_project);
|
|
|
|
|
temp_show(NULL, glade_path);
|
|
|
|
|
int i = 0;
|
|
|
|
|
g_signal_connect(G_OBJECT(get_widget_temp()->btnSaveTempSave),"clicked",G_CALLBACK(entry_project_disk),&i);
|
|
|
|
@ -84,10 +84,10 @@ void wrapper_edit_project_show() {
|
|
|
|
|
int index = wrapper_select_tree_view(&cfg_custom_gui.project);
|
|
|
|
|
set_temp_menu("prjquota", "edit");
|
|
|
|
|
temp_set_index(index);
|
|
|
|
|
set_all_config(all_config);
|
|
|
|
|
set_all_config(&all_config);
|
|
|
|
|
temp_show(NULL, glade_path);
|
|
|
|
|
set_vector(&all_config->v_project);
|
|
|
|
|
set_edit_gui_data_base(all_config, index);
|
|
|
|
|
set_vector(&all_config.v_project);
|
|
|
|
|
set_edit_gui_data_base(&all_config, index);
|
|
|
|
|
int i = 0;
|
|
|
|
|
g_signal_connect(G_OBJECT(get_widget_temp()->btnSaveTempSave),"clicked",G_CALLBACK(entry_project_disk),&i);
|
|
|
|
|
}
|
|
|
|
@ -124,14 +124,14 @@ void unlock_tree_view(hotebook* widgets,void (*f)()) {
|
|
|
|
|
|
|
|
|
|
void entry_user_disk(GtkWidget *self,int* flag_update) {
|
|
|
|
|
if (flag_update) {
|
|
|
|
|
all_config->flag_set_data = 1;
|
|
|
|
|
all_config->flag_save = 3;
|
|
|
|
|
all_config.flag_set_data = 1;
|
|
|
|
|
all_config.flag_save = 3;
|
|
|
|
|
temp_on_destroy_subwindow(self);
|
|
|
|
|
}
|
|
|
|
|
get_status_disk(&cfg_custom_gui.user);
|
|
|
|
|
char* activ_text = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(cfg_custom_gui.user.comboBox));
|
|
|
|
|
activ_text= yon_char_divide_search(activ_text, " ", -1);
|
|
|
|
|
int find = fill_tree_view_user_group(all_config, activ_text, &cfg_custom_gui.user,"usrquota", 0);
|
|
|
|
|
int find = fill_tree_view_user_group(&all_config, activ_text, &cfg_custom_gui.user,"usrquota", 0);
|
|
|
|
|
if (find == 0) {
|
|
|
|
|
g_object_ref(cfg_custom_gui.user.liststore);
|
|
|
|
|
gtk_list_store_clear(cfg_custom_gui.user.liststore);
|
|
|
|
@ -139,14 +139,14 @@ void entry_user_disk(GtkWidget *self,int* flag_update) {
|
|
|
|
|
}
|
|
|
|
|
void entry_groups_disk(GtkWidget *self,int* flag_update) {
|
|
|
|
|
if (flag_update) {
|
|
|
|
|
all_config->flag_set_data = 1;
|
|
|
|
|
all_config->flag_save = 3;
|
|
|
|
|
all_config.flag_set_data = 1;
|
|
|
|
|
all_config.flag_save = 3;
|
|
|
|
|
temp_on_destroy_subwindow(self);
|
|
|
|
|
}
|
|
|
|
|
get_status_disk(&cfg_custom_gui.group);
|
|
|
|
|
char* activ_text = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(cfg_custom_gui.group.comboBox));
|
|
|
|
|
activ_text= yon_char_divide_search(activ_text, " ", -1);
|
|
|
|
|
int find = fill_tree_view_user_group(all_config, activ_text, &cfg_custom_gui.group,"grpquota", 0);
|
|
|
|
|
int find = fill_tree_view_user_group(&all_config, activ_text, &cfg_custom_gui.group,"grpquota", 0);
|
|
|
|
|
if (find == 0) {
|
|
|
|
|
g_object_ref(cfg_custom_gui.group.liststore);
|
|
|
|
|
gtk_list_store_clear(cfg_custom_gui.group.liststore);
|
|
|
|
@ -154,11 +154,11 @@ void entry_groups_disk(GtkWidget *self,int* flag_update) {
|
|
|
|
|
}
|
|
|
|
|
void entry_project_disk(GtkWidget *self,int* flag_update) {
|
|
|
|
|
if (flag_update) {
|
|
|
|
|
all_config->flag_set_data = 1;
|
|
|
|
|
all_config->flag_save = 3;
|
|
|
|
|
all_config.flag_set_data = 1;
|
|
|
|
|
all_config.flag_save = 3;
|
|
|
|
|
temp_on_destroy_subwindow(self);
|
|
|
|
|
}
|
|
|
|
|
int find = fill_tree_view_project(all_config, &cfg_custom_gui.project,"prjquota", 0);
|
|
|
|
|
int find = fill_tree_view_project(&all_config, &cfg_custom_gui.project,"prjquota", 0);
|
|
|
|
|
if (find == 0) {
|
|
|
|
|
g_object_ref(cfg_custom_gui.project.liststore);
|
|
|
|
|
gtk_list_store_clear(cfg_custom_gui.project.liststore);
|
|
|
|
@ -168,21 +168,21 @@ void entry_project_disk(GtkWidget *self,int* flag_update) {
|
|
|
|
|
void tree_view_select_user(GtkWidget* self) {
|
|
|
|
|
block_tree_view(&cfg_custom_gui.user,tree_view_select_user);
|
|
|
|
|
block_spin_time(&cfg_custom_gui.user, wrapper_get_spin_time_gui_user);
|
|
|
|
|
tree_view_select(NULL,&all_config->v_user , &cfg_custom_gui.user);
|
|
|
|
|
tree_view_select(NULL,&all_config.v_user , &cfg_custom_gui.user);
|
|
|
|
|
unlock_spin_time(&cfg_custom_gui.user, wrapper_get_spin_time_gui_user);
|
|
|
|
|
unlock_tree_view(&cfg_custom_gui.user,tree_view_select_user);
|
|
|
|
|
}
|
|
|
|
|
void tree_view_select_group(GtkWidget* sel) {
|
|
|
|
|
block_tree_view(&cfg_custom_gui.group,tree_view_select_group);
|
|
|
|
|
block_spin_time(&cfg_custom_gui.group, wrapper_get_spin_time_gui_group);
|
|
|
|
|
tree_view_select(NULL,&all_config->v_group ,&cfg_custom_gui.group);
|
|
|
|
|
tree_view_select(NULL,&all_config.v_group ,&cfg_custom_gui.group);
|
|
|
|
|
unlock_spin_time(&cfg_custom_gui.group, wrapper_get_spin_time_gui_group);
|
|
|
|
|
unlock_tree_view(&cfg_custom_gui.group,tree_view_select_group);
|
|
|
|
|
}
|
|
|
|
|
void tree_view_select_project(GtkWidget* self) {
|
|
|
|
|
block_tree_view(&cfg_custom_gui.project,tree_view_select_project);
|
|
|
|
|
block_spin_time(&cfg_custom_gui.project, wrapper_get_spin_time_gui_project);
|
|
|
|
|
tree_view_select(NULL,&all_config->v_project , &cfg_custom_gui.project);
|
|
|
|
|
tree_view_select(NULL,&all_config.v_project , &cfg_custom_gui.project);
|
|
|
|
|
unlock_spin_time(&cfg_custom_gui.project, wrapper_get_spin_time_gui_project);
|
|
|
|
|
unlock_tree_view(&cfg_custom_gui.group, wrapper_get_spin_time_gui_project);
|
|
|
|
|
}
|
|
|
|
@ -191,7 +191,7 @@ void tree_view_select_project(GtkWidget* self) {
|
|
|
|
|
void tree_view_select(GtkWidget* self, vector* vec_temp, hotebook* widgets) {
|
|
|
|
|
if (self) {}
|
|
|
|
|
if (vec_temp->vectorList.total > 0) {
|
|
|
|
|
tree_view_edit(all_config, vec_temp, widgets);
|
|
|
|
|
tree_view_edit(&all_config, vec_temp, widgets);
|
|
|
|
|
GtkTreeIter iter;
|
|
|
|
|
GtkTreeModel *model = GTK_TREE_MODEL(widgets->liststore);
|
|
|
|
|
GtkTreeSelection *selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(widgets->tree_view));
|
|
|
|
@ -211,17 +211,17 @@ void tree_view_select(GtkWidget* self, vector* vec_temp, hotebook* widgets) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void wrapper_get_spin_time_gui_user() {
|
|
|
|
|
get_spin_time_gui(&all_config->v_user, &cfg_custom_gui.user);
|
|
|
|
|
get_spin_time_gui(&all_config.v_user, &cfg_custom_gui.user);
|
|
|
|
|
entry_user_disk(0, 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void wrapper_get_spin_time_gui_group() {
|
|
|
|
|
get_spin_time_gui(&all_config->v_group, &cfg_custom_gui.group);
|
|
|
|
|
get_spin_time_gui(&all_config.v_group, &cfg_custom_gui.group);
|
|
|
|
|
entry_groups_disk(0, 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void wrapper_get_spin_time_gui_project() {
|
|
|
|
|
get_spin_time_gui(&all_config->v_project, &cfg_custom_gui.project);
|
|
|
|
|
get_spin_time_gui(&all_config.v_project, &cfg_custom_gui.project);
|
|
|
|
|
entry_project_disk(0, 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -251,10 +251,10 @@ void template_remove(vector* vec_temp, hotebook* widgets) {
|
|
|
|
|
if (index!=-1) {
|
|
|
|
|
config_u_g_p* _config = (config_u_g_p*)vec_temp->pfVectorGet(vec_temp, index);
|
|
|
|
|
char* load_key = yon_char_new(_config->loaded_keys);
|
|
|
|
|
all_config->v_remove.pfVectorAdd(&all_config->v_remove, load_key);
|
|
|
|
|
all_config.v_remove.pfVectorAdd(&all_config.v_remove, load_key);
|
|
|
|
|
model_clear_cfg(_config);
|
|
|
|
|
vec_temp->pfVectorDelete(vec_temp, index);
|
|
|
|
|
all_config->flag_save = 1;
|
|
|
|
|
all_config.flag_save = 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -265,7 +265,7 @@ void user_remove() {
|
|
|
|
|
if(gtk_tree_selection_get_selected(selection, &model, &iter)) {
|
|
|
|
|
gtk_list_store_remove(cfg_custom_gui.user.liststore, &iter);
|
|
|
|
|
}
|
|
|
|
|
template_remove(&all_config->v_user, &cfg_custom_gui.user);
|
|
|
|
|
template_remove(&all_config.v_user, &cfg_custom_gui.user);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void group_remove() {
|
|
|
|
@ -275,7 +275,7 @@ void group_remove() {
|
|
|
|
|
if(gtk_tree_selection_get_selected(selection, &model, &iter)) {
|
|
|
|
|
gtk_list_store_remove(cfg_custom_gui.group.liststore, &iter);
|
|
|
|
|
}
|
|
|
|
|
template_remove(&all_config->v_group ,&cfg_custom_gui.group);
|
|
|
|
|
template_remove(&all_config.v_group ,&cfg_custom_gui.group);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void project_remove() {
|
|
|
|
@ -285,7 +285,7 @@ void project_remove() {
|
|
|
|
|
if(gtk_tree_selection_get_selected(selection, &model, &iter)) {
|
|
|
|
|
gtk_list_store_remove(cfg_custom_gui.project.liststore, &iter);
|
|
|
|
|
}
|
|
|
|
|
template_remove(&all_config->v_project , &cfg_custom_gui.project);
|
|
|
|
|
template_remove(&all_config.v_project , &cfg_custom_gui.project);
|
|
|
|
|
}
|
|
|
|
|
int tree_view_edit(config_all* _all_config, vector* vec_temp, hotebook* widgets) {
|
|
|
|
|
int index = wrapper_select_tree_view(widgets);
|
|
|
|
@ -314,48 +314,48 @@ void wrapper_all_save() {
|
|
|
|
|
|
|
|
|
|
int flag_mess_save = 0;
|
|
|
|
|
|
|
|
|
|
if (all_config->flag_load == 0) {
|
|
|
|
|
flag_mess_save = wrapper_template_save(all_config, CMD_ALL_SAVE, CMD_ALL_REMOVE);
|
|
|
|
|
if (all_config.flag_load == 0) {
|
|
|
|
|
flag_mess_save = wrapper_template_save(&all_config, CMD_ALL_SAVE, CMD_ALL_REMOVE);
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
flag_mess_save = wrapper_template_save(all_config, CMD_ALL_SAVE, CMD_ALL_REMOVE);
|
|
|
|
|
flag_mess_save = wrapper_template_save(&all_config, CMD_ALL_SAVE, CMD_ALL_REMOVE);
|
|
|
|
|
}
|
|
|
|
|
if (flag_mess_save) {
|
|
|
|
|
yon_ubl_status_box_render(GLOBAL_LOCAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
all_config->flag_load=0;
|
|
|
|
|
all_config.flag_load=0;
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
yon_ubl_status_box_render(MESS_NOTHING_SAVE, BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
void wrapper_global_save() {
|
|
|
|
|
if (wrapper_template_save(all_config, CMD_SAVE_GLOBAL, CMD_REMOVE_GLOBAL)) {
|
|
|
|
|
if (wrapper_template_save(&all_config, CMD_SAVE_GLOBAL, CMD_REMOVE_GLOBAL)) {
|
|
|
|
|
yon_ubl_status_box_render(GLOBAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
all_config->flag_load-=1;
|
|
|
|
|
all_config.flag_load-=1;
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
yon_ubl_status_box_render(MESS_NOTHING_SAVE, BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
void wrapper_system_save() {
|
|
|
|
|
if (wrapper_template_save(all_config, CMD_SAVE_SYSTEM, CMD_REMOVE_SYSTEM)) {
|
|
|
|
|
if (wrapper_template_save(&all_config, CMD_SAVE_SYSTEM, CMD_REMOVE_SYSTEM)) {
|
|
|
|
|
yon_ubl_status_box_render(LOCAL_SAVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
all_config->flag_load-=1;
|
|
|
|
|
all_config.flag_load-=1;
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
yon_ubl_status_box_render(MESS_NOTHING_SAVE, BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
void load_system_cfg() {
|
|
|
|
|
all_config->flag_load = 0;
|
|
|
|
|
load_template_load_cfg(all_config, CMD_LOAD_SYSTEM);
|
|
|
|
|
all_config.flag_load = 0;
|
|
|
|
|
load_template_load_cfg(&all_config, CMD_LOAD_SYSTEM);
|
|
|
|
|
yon_ubl_status_box_render(LOCAL_LOAD_SUCCESS_LABEL, BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
entry_project_disk(0, 0);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void load_global_cfg() {
|
|
|
|
|
all_config->flag_load = 1;
|
|
|
|
|
load_template_load_cfg(all_config, CMD_LOAD_GLOBAL);
|
|
|
|
|
all_config.flag_load = 1;
|
|
|
|
|
load_template_load_cfg(&all_config, CMD_LOAD_GLOBAL);
|
|
|
|
|
yon_ubl_status_box_render(LOCAL_LOAD_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
entry_project_disk(0, 0);
|
|
|
|
|
}
|
|
|
|
@ -422,7 +422,7 @@ void template_set_status_disk(GtkWidget* self,hotebook* widgets) {
|
|
|
|
|
int menu_id = gtk_combo_box_get_active(GTK_COMBO_BOX(widgets->cmbSetStatusDisk));
|
|
|
|
|
char* activ_text = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(widgets->comboBox));
|
|
|
|
|
activ_text = yon_char_divide_search(activ_text, " ", -1);
|
|
|
|
|
vector* v_disk_status = &all_config->v_disk_status;
|
|
|
|
|
vector* v_disk_status = &all_config.v_disk_status;
|
|
|
|
|
int flag = 0;
|
|
|
|
|
if (v_disk_status->vectorList.total> 0 && menu_id_disk >= 0 && menu_id >= 0) {
|
|
|
|
|
for (int i = 0; i < v_disk_status->pfVectorTotal(v_disk_status); i++) {
|
|
|
|
@ -430,7 +430,7 @@ void template_set_status_disk(GtkWidget* self,hotebook* widgets) {
|
|
|
|
|
if (strstr(_config->device, activ_text) && strstr(_config->device,widgets->name)) {
|
|
|
|
|
flag = 1;
|
|
|
|
|
_config->status = menu_id;
|
|
|
|
|
all_config->flag_set_data = 1;
|
|
|
|
|
all_config.flag_set_data = 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -439,13 +439,13 @@ void template_set_status_disk(GtkWidget* self,hotebook* widgets) {
|
|
|
|
|
disk_cfg->device = yon_char_unite("DISK_QUOTA[",widgets->name,":",activ_text, "]",NULL);
|
|
|
|
|
disk_cfg->status = menu_id;
|
|
|
|
|
v_disk_status->pfVectorAdd(v_disk_status, disk_cfg);
|
|
|
|
|
all_config->flag_set_data = 1;
|
|
|
|
|
all_config.flag_set_data = 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void get_status_disk(hotebook* widgets) {
|
|
|
|
|
int menu_id_disk = gtk_combo_box_get_active(GTK_COMBO_BOX(widgets->comboBox));
|
|
|
|
|
vector* v_disk_status = &all_config->v_disk_status;
|
|
|
|
|
vector* v_disk_status = &all_config.v_disk_status;
|
|
|
|
|
if (v_disk_status->vectorList.total> 0 && menu_id_disk>=0) {
|
|
|
|
|
char* activ_text = gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(widgets->comboBox));
|
|
|
|
|
activ_text = yon_char_divide_search(activ_text, " ", -1);
|
|
|
|
@ -484,8 +484,12 @@ void main_visible_columns(GtkWidget *self) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int main(int argc, char *argv[]){
|
|
|
|
|
all_config = malloc(sizeof(config_all));
|
|
|
|
|
all_config->flag_not_data = 0;
|
|
|
|
|
all_config.flag_not_data = 0;
|
|
|
|
|
vector_init(&all_config.v_user);
|
|
|
|
|
vector_init(&all_config.v_group);
|
|
|
|
|
vector_init(&all_config.v_project);
|
|
|
|
|
vector_init(&all_config.v_disk_status);
|
|
|
|
|
vector_init(&all_config.v_remove);
|
|
|
|
|
local=setlocale(LC_ALL, "");
|
|
|
|
|
bindtextdomain(LocaleName, yon_char_unite(LocalePath, "/", NULL));
|
|
|
|
|
//bind_textdomain_codeset(LocaleName, "UTF-8");
|
|
|
|
|