|
|
|
|
@ -93,9 +93,7 @@ void on_user_remove_clicked(GtkWidget *,main_window *widgets){
|
|
|
|
|
if (gtk_tree_selection_get_selected(gtk_tree_view_get_selection(GTK_TREE_VIEW(widgets->BootUsersTree)),&model,&iter)){
|
|
|
|
|
char *name;
|
|
|
|
|
gtk_tree_model_get(model,&iter,1,&name,-1);
|
|
|
|
|
dialog_confirmation_data *data = new(dialog_confirmation_data);
|
|
|
|
|
data->data=NULL;
|
|
|
|
|
data->function=NULL;
|
|
|
|
|
dialog_confirmation_data *data = yon_confirmation_dialog_data_new();
|
|
|
|
|
data->action_text = USER_REMOVE_CONFIRM_LABEL(name);
|
|
|
|
|
if (yon_confirmation_dialog_call(widgets->Window,data)==GTK_RESPONSE_ACCEPT){
|
|
|
|
|
yon_config_remove_by_key(GRUB_PASSWORD(name));
|
|
|
|
|
|