I try to receive and save the url of each image contained within a folder with gtk_filechooser_get_uris and it does not work | Sololearn: Learn to code for FREE!

0

I try to receive and save the url of each image contained within a folder with gtk_filechooser_get_uris and it does not work

5 Answers

New Answer

+1

Hi! Pls, show us your code here! Thx!

+1

specify also the programming language

0

Hey, thanks for reply

0

void on_file1_file_set(GtkFileChooserButton *f, const gchar *ejemplo){ ejemplo = printf("file name = %s\n", gtk_file_chooser_get_filename (GTK_FILE_CHOOSER(f))); printf("folder name = %s\n", gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(f))); printf("folder uris = %s\n", gtk_file_chooser_get_uris(GTK_FILE_CHOOSER(f))); printf("folder uris = %s\n", gtk_file_chooser_get_filenames(GTK_FILE_CHOOSER(f))); //printf("El arhcivo seleccionado esta en la direccion%s\n", ejemplo); //gtk_label_set_text (GTK_LABEL(label1), (GTK_LABEL(ejemplo))); //ejemplo = gtk_label_set_text (GTK_LABEL(label1), "file name = %s\n", gtk_file_chooser_get_filename (GTK_FILE_CHOOSER(f))); }

0

I am programming in C with the gtk library an GUI app for Gnome