|
|
|
@ -2108,9 +2108,11 @@ void on_user_save(GtkWidget *self, dictionary *dict){
|
|
|
|
|
|
|
|
|
|
|
|
int user_shell_active = gtk_combo_box_get_active(GTK_COMBO_BOX(window->userShellCombo));
|
|
|
|
int user_shell_active = gtk_combo_box_get_active(GTK_COMBO_BOX(window->userShellCombo));
|
|
|
|
if (user_shell_active>0){
|
|
|
|
if (user_shell_active>0){
|
|
|
|
user_shell = yon_char_unite("--shell ",(char*)gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(window->userShellCombo)),NULL);
|
|
|
|
char *shell_string = (char*)gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(window->userShellCombo));
|
|
|
|
if (!strcmp(user_shell,SET_LABEL)){
|
|
|
|
if (strcmp(shell_string,SET_LABEL)){
|
|
|
|
user_shell = yon_char_unite("--shell ",(char*)gtk_combo_box_text_get_active_text(GTK_COMBO_BOX_TEXT(window->userShellCombo)),NULL);
|
|
|
|
user_shell = yon_char_unite("--shell ",shell_string,NULL);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
user_shell = yon_char_unite("--shell ",(char*)gtk_entry_get_text(GTK_ENTRY(window->userShellEntry)),NULL);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else user_shell="";
|
|
|
|
} else user_shell="";
|
|
|
|
|
|
|
|
|
|
|
|
|