So in my program I have one function which run filechooser dialg and after clicking Ok path to file is kept in filename, and thats all good but
right now I would like to pass that variable to another function and Im not sure how to do it, what I need to do, here is example
button = GTK_WIDGET( gtk_builder_get_object( builder, "button1" ) );
g_signal_connect (button, "clicked", G_CALLBACK (show_dialog), &filename);
show_dialog ( GtkWidget *button,
gpointer user_data )
gchar *filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (filechoosedialog));
How can I store value of filename in a such way that I can have it available in another function ?