|
|
|
|
@ -803,7 +803,7 @@ void on_passwords_encrypt(){
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void on_password_change(GtkWidget *self, dictionary *entry_dict){//
|
|
|
|
|
void on_password_change(GtkWidget *self, dictionary *entry_dict){
|
|
|
|
|
GtkComboBox *combo = yon_dictionary_get_data(entry_dict->first,GtkComboBox*);
|
|
|
|
|
GtkEntry *output_target = yon_dictionary_get_data(entry_dict->first->next,GtkEntry*);
|
|
|
|
|
ubl_settings_usergroups_password_window *window = yon_ubl_settings_usergroups_password_new();
|
|
|
|
|
@ -2239,7 +2239,6 @@ void on_main_edit(GtkWidget *self, main_window *widgets){
|
|
|
|
|
}else if (!strcmp(parameters_substring[i],"--no-create-home")||!strcmp(parameters_substring[i],"-M")){
|
|
|
|
|
gtk_combo_box_set_active(GTK_COMBO_BOX(window->userHomeCombo),2);
|
|
|
|
|
}else if (!strcmp(parameters_substring[i],"--no-user-group")||!strcmp(parameters_substring[i],"-N")){
|
|
|
|
|
// gtk
|
|
|
|
|
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(window->userGroupsCheck),0);
|
|
|
|
|
gtk_entry_set_text(GTK_ENTRY(window->userGroupsEntry),"");
|
|
|
|
|
}else if (!strcmp(parameters_substring[i],"--non-unique")||!strcmp(parameters_substring[i],"-o")){
|
|
|
|
|
@ -2248,7 +2247,6 @@ void on_main_edit(GtkWidget *self, main_window *widgets){
|
|
|
|
|
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(window->userDontCheckCheck),1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// gtk_entry_set_text(GTK_ENTRY(window->), parsed_size>4?parameters[4]:"");
|
|
|
|
|
}
|
|
|
|
|
if (parsed_size>5){
|
|
|
|
|
window->old_password=parameters[5];
|
|
|
|
|
@ -2390,18 +2388,6 @@ void on_main_delete(GtkWidget *self, main_window *widgets){
|
|
|
|
|
yon_delete_confirmation_open(widgets);
|
|
|
|
|
} else {
|
|
|
|
|
yon_group_delete_confirmation_open(widgets);
|
|
|
|
|
// model = GTK_TREE_MODEL(widgets->GroupsList);
|
|
|
|
|
// cur_tree=widgets->GroupsTree;
|
|
|
|
|
// if(gtk_tree_selection_get_selected(gtk_tree_view_get_selection(GTK_TREE_VIEW(cur_tree)),&model,&iter)){
|
|
|
|
|
// char *name;
|
|
|
|
|
// gtk_tree_model_get(model,&iter,1,&name,-1);
|
|
|
|
|
// data->action_text=DELETE_CONFIRMATION_LABEL("group",name);
|
|
|
|
|
// if (yon_confirmation_dialog_call(self,data)==GTK_RESPONSE_ACCEPT){
|
|
|
|
|
// yon_config_remove_by_key(GROUPADD(name));
|
|
|
|
|
// gtk_list_store_remove(GTK_LIST_STORE(model),&iter);
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -2474,9 +2460,6 @@ void config_init(){
|
|
|
|
|
if (!strcmp(divided,"minlen")){
|
|
|
|
|
main_config.password_min_length = atol(strstr(login_defs[i],"\t"));
|
|
|
|
|
}
|
|
|
|
|
// else if (!strcmp(divided,"UID_MIN")){
|
|
|
|
|
// main_config.MINUID = atol(strstr(login_defs[i],"\t"));
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@ -2492,7 +2475,6 @@ void config_init(){
|
|
|
|
|
}
|
|
|
|
|
free(parameter);
|
|
|
|
|
}
|
|
|
|
|
// yon_char_parsed_free(file_output,size);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void on_selection_changed(GtkWidget *self, main_window *widgets){
|
|
|
|
|
|