Most use cases for these apis can be handled with gtk_file_chooser_set_file and/or gtk_file_chooser_set_current_folder.