PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ pgui_action_handle_file_remove()

static void pgui_action_handle_file_remove ( GtkCellRendererToggle *  renderer,
gchar *  path,
gpointer  user_data 
)
static

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

2228 {
2229  GtkTreeIter iter;
2230  SHPLOADERCONFIG *loader_file_config;
2231  gpointer gptr;
2232 
2233  /* Grab the SHPLOADERCONFIG from the IMPORT_POINTER_COLUMN for the list store */
2234  gtk_tree_model_get_iter_from_string(GTK_TREE_MODEL(import_file_list_store), &iter, path);
2235  gtk_tree_model_get(GTK_TREE_MODEL(import_file_list_store), &iter, IMPORT_POINTER_COLUMN, &gptr, -1);
2236  loader_file_config = (SHPLOADERCONFIG *)gptr;
2237 
2238  /* Free the configuration from memory */
2239  free_loader_config(loader_file_config);
2240 
2241  /* Remove the row from the list */
2242  gtk_list_store_remove(import_file_list_store, &iter);
2243 
2244  /* Update the filename field width */
2246 }
static void update_filename_field_width(void)
static void free_loader_config(SHPLOADERCONFIG *config)
@ IMPORT_POINTER_COLUMN
GtkListStore * import_file_list_store
Definition: shp2pgsql-gui.c:56

References free_loader_config(), import_file_list_store, IMPORT_POINTER_COLUMN, and update_filename_field_width().

Referenced by pgui_create_import_file_table().

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