Filechooser edits; exit config check fixes

pull/55/head
parent 69434f9181
commit 3215ca46ed
No known key found for this signature in database
GPG Key ID: FF1D842BF4DDE92B

@ -51,6 +51,7 @@ void on_file_chooser_selected(GtkWidget *self, filechooser_window *window){
(action == GTK_FILE_CHOOSER_ACTION_SAVE&&!yon_file_is_directory(data)) ||
(action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER&&yon_file_is_directory(data))
){
// gtk_file_chooser_set_current_name(GTK_FILE_CHOOSER(window->MainFileChooser),g_path_get_basename(data));
yon_char_parsed_add_or_create_if_exists(paths_success,&success_size,data);
}

@ -253,11 +253,11 @@ gboolean on_window_delete (GtkWidget *self, GdkEvent *,template_main_window *){
}
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);
g_signal_handlers_disconnect_by_func(G_OBJECT(widgets->Window),G_CALLBACK(on_window_delete),NULL);
}
void yon_window_set_exit_config_check(template_main_window *widgets, GCallback data_callback_function){
g_signal_connect(G_OBJECT(widgets->Window),"delete-event",G_CALLBACK(on_window_delete),widgets->Window);
g_signal_connect(G_OBJECT(widgets->Window),"delete-event",G_CALLBACK(on_window_delete),NULL);
g_object_set_data(G_OBJECT(widgets->Window),"exit_data_callback",data_callback_function);
}

Loading…
Cancel
Save