PostGIS  2.2.7dev-r@@SVN_REVISION@@
static void update_dumper_table_config_from_listview_iter ( GtkTreeIter *  iter,
SHPDUMPERCONFIG dumper_table_config 
)
static

Definition at line 2248 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().

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

Here is the call graph for this function:

Here is the caller graph for this function: