diff --git a/source/libublsettingsui-gtk3.c b/source/libublsettingsui-gtk3.c index a74de54..117c69c 100644 --- a/source/libublsettingsui-gtk3.c +++ b/source/libublsettingsui-gtk3.c @@ -242,6 +242,10 @@ gboolean on_window_delete (GtkWidget *, GdkEvent *,template_main_window *widgets return 0; } +void yon_window_remove_exit_config_check(template_main_window *widgets){ + g_signal_handlers_disconnect_by_func(G_OBJECT(widgets->Window),G_CALLBACK(on_window_delete),widgets); +} + template_main_window *setup_window(){ /* Widgets getting | Получение виджетов */ template_main_window *widgets = malloc(sizeof(template_main_window)); diff --git a/source/libublsettingsui-gtk3.h b/source/libublsettingsui-gtk3.h index c018ade..046e50c 100644 --- a/source/libublsettingsui-gtk3.h +++ b/source/libublsettingsui-gtk3.h @@ -323,6 +323,7 @@ template_app_info yon_ubl_get_app_info(); void yon_ubl_settings_window_set_standard_callbacks(template_main_window *widgets, char *get_global_command, char *get_local_command,char *get_custom_command, char *get_default_command, char *get_global_only_command, char *get_local_only_command); +void yon_window_remove_exit_config_check(template_main_window *widgets); typedef struct { GtkWidget *Window;