diff --git a/source/libublsettingsui-gtk3-filechooser.c b/source/libublsettingsui-gtk3-filechooser.c index 3d40bd7..d287a79 100644 --- a/source/libublsettingsui-gtk3-filechooser.c +++ b/source/libublsettingsui-gtk3-filechooser.c @@ -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); } diff --git a/source/libublsettingsui-gtk3.c b/source/libublsettingsui-gtk3.c index d15dc5f..47bd817 100644 --- a/source/libublsettingsui-gtk3.c +++ b/source/libublsettingsui-gtk3.c @@ -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); }