PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ table_chooser_visibility_func()

static gboolean table_chooser_visibility_func ( GtkTreeModel *  model,
GtkTreeIter *  iter,
gpointer  data 
)
static

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

References checkbutton_chooser_geoonly, FALSE, TABLECHOOSER_HASGEO_COLUMN, and TRUE.

Referenced by pgui_create_tablechooser_dialog().

768 {
769  /* First determine whether the hasgeo tickbox is selected or not */
770  gboolean geoonly = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(checkbutton_chooser_geoonly));
771  int hasgeo;
772 
773  /* If unticked then we show all tables */
774  if (!geoonly)
775  return TRUE;
776  else
777  {
778  /* Otherwise we only show the tables with geo columns */
779  gtk_tree_model_get(GTK_TREE_MODEL(model), iter, TABLECHOOSER_HASGEO_COLUMN, &hasgeo, -1);
780  if (hasgeo)
781  return TRUE;
782  else
783  return FALSE;
784  }
785 
786  return FALSE;
787 }
static GtkWidget * checkbutton_chooser_geoonly
#define FALSE
Definition: dbfopen.c:168
#define TRUE
Definition: dbfopen.c:169
Here is the caller graph for this function: