From b0aab242fd0d87525e73fc54dce19acc8e4df871 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Tue, 29 Apr 2025 12:39:03 +0600 Subject: [PATCH] Dialog window changes --- source/ubl-settings-kernel.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/ubl-settings-kernel.c b/source/ubl-settings-kernel.c index 5e644d4..09f0206 100644 --- a/source/ubl-settings-kernel.c +++ b/source/ubl-settings-kernel.c @@ -1122,10 +1122,8 @@ void on_package_remove_clicked(GtkWidget *self,dictionary *dict){ void on_launch_cliked(GtkWidget *self,dictionary *dict){ main_window *widgets = yon_dictionary_get_data(dict->first,main_window*); kernels_tab *tab = yon_dictionary_get_data(dict->first->next,kernels_tab*); - dialog_confirmation_data *data = malloc(sizeof(dialog_confirmation_data)); + dialog_confirmation_data *data = yon_confirmation_dialog_data_new(); data->action_text = LAUNCH_CONFIRMATION_LABEL(tab->name); - data->function = NULL; - data->data = NULL; if (yon_confirmation_dialog_call(self,data) == GTK_RESPONSE_ACCEPT){ yon_config_register(KERNEL_BOOT_parameter,KERNEL_BOOT_command,tab->package); on_update_clicked(NULL,widgets);