|
|
|
@ -64,8 +64,16 @@ void on_file_chooser_selected(GtkWidget *self, filechooser_window *window){
|
|
|
|
if (success_size) yon_char_parsed_free(paths_success,success_size);
|
|
|
|
if (success_size) yon_char_parsed_free(paths_success,success_size);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
filechooser_window *__yon_filechooser_window = NULL;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void yon_file_chooser_set_button_label(char *label){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
filechooser_window *yon_file_chooser_window_new(GtkFileChooserAction action){
|
|
|
|
filechooser_window *yon_file_chooser_window_new(GtkFileChooserAction action){
|
|
|
|
|
|
|
|
if (!__yon_filechooser_window){
|
|
|
|
filechooser_window *window = malloc(sizeof(filechooser_window));
|
|
|
|
filechooser_window *window = malloc(sizeof(filechooser_window));
|
|
|
|
|
|
|
|
__yon_filechooser_window = window;
|
|
|
|
GtkBuilder *builder = gtk_builder_new_from_resource(ui_glade_path_filechooser);
|
|
|
|
GtkBuilder *builder = gtk_builder_new_from_resource(ui_glade_path_filechooser);
|
|
|
|
window->Window = yon_gtk_builder_get_widget(builder,"Window");
|
|
|
|
window->Window = yon_gtk_builder_get_widget(builder,"Window");
|
|
|
|
window->StatusBox = yon_gtk_builder_get_widget(builder,"StatusBox");
|
|
|
|
window->StatusBox = yon_gtk_builder_get_widget(builder,"StatusBox");
|
|
|
|
@ -99,6 +107,9 @@ filechooser_window *yon_file_chooser_window_new(GtkFileChooserAction action){
|
|
|
|
|
|
|
|
|
|
|
|
g_signal_connect(G_OBJECT(window->CancelButton),"clicked",G_CALLBACK(on_subwindow_close),NULL);
|
|
|
|
g_signal_connect(G_OBJECT(window->CancelButton),"clicked",G_CALLBACK(on_subwindow_close),NULL);
|
|
|
|
return window;
|
|
|
|
return window;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return __yon_filechooser_window;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
GtkResponseType yon_file_chooser_start(filechooser_window *window){
|
|
|
|
GtkResponseType yon_file_chooser_start(filechooser_window *window){
|
|
|
|
|