|
|
|
@ -1676,19 +1676,19 @@ void on_page_navigation_clicked(GtkWidget *self, main_window *widgets){
|
|
|
|
case YON_PAGE_USERS:{ //users
|
|
|
|
case YON_PAGE_USERS:{ //users
|
|
|
|
|
|
|
|
|
|
|
|
if (yon_char_is_empty(gtk_entry_get_text(GTK_ENTRY(widgets->UserNameEntry)))||!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->UsernameSensitiveCheck))){
|
|
|
|
if (yon_char_is_empty(gtk_entry_get_text(GTK_ENTRY(widgets->UserNameEntry)))||!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->UsernameSensitiveCheck))){
|
|
|
|
// yon_config_remove_by_key(user_gecos_parameter);
|
|
|
|
yon_config_remove_by_key(user_gecos_parameter);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
char *username = (char*)gtk_entry_get_text(GTK_ENTRY(widgets->UserNameEntry));
|
|
|
|
char *username = (char*)gtk_entry_get_text(GTK_ENTRY(widgets->UserNameEntry));
|
|
|
|
if (username){};
|
|
|
|
if (username){};
|
|
|
|
// yon_config_register(user_gecos_parameter,user_gecos_parameter_command,username);
|
|
|
|
yon_config_register(user_gecos_parameter,user_gecos_parameter_command,username);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (yon_char_is_empty(gtk_entry_get_text(GTK_ENTRY(widgets->LoginEntry)))||!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->LoginSensitiveCheck))){
|
|
|
|
if (yon_char_is_empty(gtk_entry_get_text(GTK_ENTRY(widgets->LoginEntry)))||!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->LoginSensitiveCheck))){
|
|
|
|
// yon_config_remove_by_key(user_name_parameter);
|
|
|
|
yon_config_remove_by_key(user_name_parameter);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
char *login = (char*)gtk_entry_get_text(GTK_ENTRY(widgets->LoginEntry));
|
|
|
|
char *login = (char*)gtk_entry_get_text(GTK_ENTRY(widgets->LoginEntry));
|
|
|
|
if (login){};
|
|
|
|
if (login){};
|
|
|
|
// yon_config_register(user_name_parameter,user_name_parameter_command,login);
|
|
|
|
yon_config_register(user_name_parameter,user_name_parameter_command,login);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -1702,14 +1702,14 @@ void on_page_navigation_clicked(GtkWidget *self, main_window *widgets){
|
|
|
|
char *password = (char*)gtk_entry_get_text(GTK_ENTRY(widgets->PasswordEntry));
|
|
|
|
char *password = (char*)gtk_entry_get_text(GTK_ENTRY(widgets->PasswordEntry));
|
|
|
|
if (password){};
|
|
|
|
if (password){};
|
|
|
|
|
|
|
|
|
|
|
|
// yon_config_register(user_password_parameter,user_password_parameter_command,password);
|
|
|
|
yon_config_register(user_password_parameter,user_password_parameter_command,password);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// yon_config_remove_by_key(user_password_parameter);
|
|
|
|
yon_config_remove_by_key(user_password_parameter);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
// yon_config_remove_by_key(user_password_parameter);
|
|
|
|
yon_config_remove_by_key(user_password_parameter);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -1722,40 +1722,40 @@ void on_page_navigation_clicked(GtkWidget *self, main_window *widgets){
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
char *root_password = (char*)gtk_entry_get_text(GTK_ENTRY(widgets->AdminPasswordEntry));
|
|
|
|
char *root_password = (char*)gtk_entry_get_text(GTK_ENTRY(widgets->AdminPasswordEntry));
|
|
|
|
if (root_password){};
|
|
|
|
if (root_password){};
|
|
|
|
// yon_config_register(root_password_parameter,root_password_parameter_command,root_password);
|
|
|
|
yon_config_register(root_password_parameter,root_password_parameter_command,root_password);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// yon_config_remove_by_key(root_password_parameter);
|
|
|
|
yon_config_remove_by_key(root_password_parameter);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// yon_config_remove_by_key(root_password_parameter);
|
|
|
|
yon_config_remove_by_key(root_password_parameter);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->HostnameSensitiveCheck))){
|
|
|
|
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->HostnameSensitiveCheck))){
|
|
|
|
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->AutoHostnameCheck))){
|
|
|
|
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->AutoHostnameCheck))){
|
|
|
|
// yon_config_register(hostname_parameter,hostname_parameter_command,"auto");
|
|
|
|
yon_config_register(hostname_parameter,hostname_parameter_command,"auto");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (!yon_char_is_empty(gtk_entry_get_text(GTK_ENTRY(widgets->HotnameEntry)))){
|
|
|
|
if (!yon_char_is_empty(gtk_entry_get_text(GTK_ENTRY(widgets->HotnameEntry)))){
|
|
|
|
char *hostname = (char*)gtk_entry_get_text(GTK_ENTRY(widgets->HotnameEntry));
|
|
|
|
char *hostname = (char*)gtk_entry_get_text(GTK_ENTRY(widgets->HotnameEntry));
|
|
|
|
if (hostname){};
|
|
|
|
if (hostname){};
|
|
|
|
// yon_config_register(hostname_parameter,hostname_parameter_command,hostname);
|
|
|
|
yon_config_register(hostname_parameter,hostname_parameter_command,hostname);
|
|
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// yon_config_remove_by_key(hostname_parameter);
|
|
|
|
yon_config_remove_by_key(hostname_parameter);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// yon_config_remove_by_key(hostname_parameter);
|
|
|
|
yon_config_remove_by_key(hostname_parameter);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->AutologinSensitiveCheck))){
|
|
|
|
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->AutologinSensitiveCheck))){
|
|
|
|
char *autologin = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->AutologinCheck))?"yes":"no";
|
|
|
|
char *autologin = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->AutologinCheck))?"yes":"no";
|
|
|
|
if (autologin){};
|
|
|
|
if (autologin){};
|
|
|
|
// yon_config_register(autologin_parameter,autologin_parameter_command,autologin);
|
|
|
|
yon_config_register(autologin_parameter,autologin_parameter_command,autologin);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// yon_config_remove_by_key(autologin_parameter);
|
|
|
|
yon_config_remove_by_key(autologin_parameter);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->LayoutSensitiveCheck))){
|
|
|
|
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->LayoutSensitiveCheck))){
|
|
|
|
@ -1773,9 +1773,9 @@ void on_page_navigation_clicked(GtkWidget *self, main_window *widgets){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!yon_char_is_empty(locales)){
|
|
|
|
if (!yon_char_is_empty(locales)){
|
|
|
|
printf("%s\n",locales);
|
|
|
|
printf("%s\n",locales);
|
|
|
|
// yon_config_register(xkblayout_parameter,xkblayout_parameter_command,locales);
|
|
|
|
yon_config_register(xkblayout_parameter,xkblayout_parameter_command,locales);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// yon_config_remove_by_key(xkblayout_parameter);
|
|
|
|
yon_config_remove_by_key(xkblayout_parameter);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
@ -1785,7 +1785,7 @@ void on_page_navigation_clicked(GtkWidget *self, main_window *widgets){
|
|
|
|
if (gtk_combo_box_get_active(GTK_COMBO_BOX(widgets->LayoutBindingCombo))&>k_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->OptionsSensitiveCheck))){
|
|
|
|
if (gtk_combo_box_get_active(GTK_COMBO_BOX(widgets->LayoutBindingCombo))&>k_toggle_button_get_active(GTK_TOGGLE_BUTTON(widgets->OptionsSensitiveCheck))){
|
|
|
|
char *options = (char*)gtk_combo_box_get_active_id(GTK_COMBO_BOX(widgets->LayoutBindingCombo));
|
|
|
|
char *options = (char*)gtk_combo_box_get_active_id(GTK_COMBO_BOX(widgets->LayoutBindingCombo));
|
|
|
|
if (options){};
|
|
|
|
if (options){};
|
|
|
|
// yon_config_register(xkboptions_parameter,xkboptions_parameter_command,options);
|
|
|
|
yon_config_register(xkboptions_parameter,xkboptions_parameter_command,options);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
yon_config_remove_by_key(xkboptions_parameter);
|
|
|
|
yon_config_remove_by_key(xkboptions_parameter);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|