PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ update_dumper_table_config_from_listview_iter()

static void update_dumper_table_config_from_listview_iter ( GtkTreeIter *  iter,
SHPDUMPERCONFIG dumper_table_config 
)
static

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

References EXPORT_FILENAME_COLUMN, EXPORT_GEOMETRY_COLUMN, EXPORT_SCHEMA_COLUMN, EXPORT_TABLE_COLUMN, export_table_list_store, free(), shp_dumper_config::geo_col_name, shp_dumper_config::schema, shp_dumper_config::shp_file, and shp_dumper_config::table.

Referenced by pgui_action_handle_dumper_edit().

2250 {
2251  gchar *schema, *table, *geo_col, *filename;
2252 
2253  /* Grab the main values for this file */
2254  gtk_tree_model_get(GTK_TREE_MODEL(export_table_list_store), iter,
2255  EXPORT_SCHEMA_COLUMN, &schema,
2256  EXPORT_TABLE_COLUMN, &table,
2257  EXPORT_GEOMETRY_COLUMN, &geo_col,
2258  EXPORT_FILENAME_COLUMN, &filename,
2259  -1);
2260 
2261  /* Update the schema */
2262  if (dumper_table_config->schema)
2263  free(dumper_table_config->schema);
2264 
2265  dumper_table_config->schema = strdup(schema);
2266 
2267  /* Update the table */
2268  if (dumper_table_config->table)
2269  free(dumper_table_config->table);
2270 
2271  dumper_table_config->table = strdup(table);
2272 
2273  /* Update the geometry column */
2274  if (dumper_table_config->geo_col_name)
2275  free(dumper_table_config->geo_col_name);
2276 
2277  dumper_table_config->geo_col_name = strdup(geo_col);
2278 
2279  /* Update the filename column (default to table name) */
2280  if (dumper_table_config->shp_file)
2281  free(dumper_table_config->shp_file);
2282 
2283  dumper_table_config->shp_file = strdup(filename);
2284 
2285  return;
2286 }
GtkListStore * export_table_list_store
Definition: shp2pgsql-gui.c:80
void free(void *)
Here is the call graph for this function:
Here is the caller graph for this function: