From 3ca0f9f6958da275f0e9ddf4c854158e7b25ed38 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Tue, 29 Apr 2025 12:33:35 +0600 Subject: [PATCH] Dialog window changes --- source/ubl-settings-bootloader-user.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/ubl-settings-bootloader-user.c b/source/ubl-settings-bootloader-user.c index 00d9387..554ac40 100644 --- a/source/ubl-settings-bootloader-user.c +++ b/source/ubl-settings-bootloader-user.c @@ -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));