PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ add_dumper_table_config_to_list()

static void add_dumper_table_config_to_list ( SHPDUMPERCONFIG dumper_table_config,
GtkListStore *  chooser_liststore,
GtkTreeIter *  chooser_iter 
)
static

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

References EXPORT_FILENAME_COLUMN, EXPORT_GEOMETRY_COLUMN, EXPORT_GEOMETRY_LISTSTORE_COLUMN, EXPORT_POINTER_COLUMN, EXPORT_SCHEMA_COLUMN, EXPORT_TABLE_COLUMN, export_table_list_store, shp_dumper_config::geo_col_name, shp_dumper_config::schema, shp_dumper_config::shp_file, shp_dumper_config::table, and TABLECHOOSER_GEO_LISTSTORE_COLUMN.

Referenced by pgui_action_open_table_dialog().

1055 {
1056  GtkTreeIter iter;
1057  GtkListStore *geocol_liststore;
1058 
1059  gtk_list_store_insert_before(export_table_list_store, &iter, NULL);
1060  gtk_list_store_set(export_table_list_store, &iter,
1061  EXPORT_POINTER_COLUMN, dumper_table_config,
1062  EXPORT_SCHEMA_COLUMN, dumper_table_config->schema,
1063  EXPORT_TABLE_COLUMN, dumper_table_config->table,
1064  EXPORT_GEOMETRY_COLUMN, dumper_table_config->geo_col_name,
1065  EXPORT_FILENAME_COLUMN, dumper_table_config->shp_file,
1066  -1);
1067 
1068  /* If we have supplied the table_chooser store for additional information, use it */
1069  if (chooser_liststore)
1070  {
1071  /* Let's add a multi-choice geometry column to the table */
1072  gtk_tree_model_get(GTK_TREE_MODEL(chooser_liststore), chooser_iter,
1073  TABLECHOOSER_GEO_LISTSTORE_COLUMN, &geocol_liststore,
1074  -1);
1075 
1076  gtk_list_store_set(export_table_list_store, &iter,
1077  EXPORT_GEOMETRY_LISTSTORE_COLUMN, geocol_liststore,
1078  -1);
1079  }
1080 
1081  return;
1082 }
GtkListStore * export_table_list_store
Definition: shp2pgsql-gui.c:79
Here is the caller graph for this function: