Added function to remove exit config checking

pull/54/head
parent 3b9ee94581
commit 4097f62cc0
No known key found for this signature in database
GPG Key ID: FF1D842BF4DDE92B

@ -242,6 +242,10 @@ gboolean on_window_delete (GtkWidget *, GdkEvent *,template_main_window *widgets
return 0; 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(){ template_main_window *setup_window(){
/* Widgets getting | Получение виджетов */ /* Widgets getting | Получение виджетов */
template_main_window *widgets = malloc(sizeof(template_main_window)); template_main_window *widgets = malloc(sizeof(template_main_window));

@ -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_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 { typedef struct {
GtkWidget *Window; GtkWidget *Window;

Loading…
Cancel
Save