PostGIS 3.6.2dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ pgui_action_open_file_dialog()

static void pgui_action_open_file_dialog ( GtkWidget *  widget,
gpointer  data 
)
static

Definition at line 1300 of file shp2pgsql-gui.c.

1301{
1302 SHPLOADERCONFIG *loader_file_config;
1303 GSList *filename_list, *filename_item;
1304 gchar *filename;
1305
1306 /* Make sure we deselect any files from the last time */
1307 gtk_file_chooser_unselect_all(GTK_FILE_CHOOSER(dialog_filechooser));
1308
1309 /* Run the dialog */
1310 if (gtk_dialog_run(GTK_DIALOG(dialog_filechooser)) == GTK_RESPONSE_ACCEPT)
1311 {
1312 /* Create the new file configuration based upon the each filename and add it to the listview */
1313 filename_list = gtk_file_chooser_get_filenames(GTK_FILE_CHOOSER(dialog_filechooser));
1314
1315 filename_item = g_slist_nth(filename_list, 0);
1316 while (filename_item)
1317 {
1318 /* Add the configuration */
1319 filename = g_slist_nth_data(filename_item, 0);
1320
1321 loader_file_config = create_new_file_config(filename);
1322 add_loader_file_config_to_list(loader_file_config);
1323
1324 /* Grab the next filename */
1325 filename_item = g_slist_next(filename_item);
1326 }
1327
1328 /* Free the list */
1329 g_slist_free(filename_list);
1330 }
1331
1332 gtk_widget_hide(dialog_filechooser);
1333}
static SHPLOADERCONFIG * create_new_file_config(const char *filename)
static GtkWidget * dialog_filechooser
static void add_loader_file_config_to_list(SHPLOADERCONFIG *loader_file_config)

References add_loader_file_config_to_list(), create_new_file_config(), and dialog_filechooser.

Referenced by pgui_create_import_file_table().

Here is the call graph for this function:
Here is the caller graph for this function: