PostGIS  2.1.10dev-r@@SVN_REVISION@@
static gboolean table_chooser_visibility_func ( GtkTreeModel *  model,
GtkTreeIter *  iter,
gpointer  data 
)
static

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

References checkbutton_chooser_geoonly, FALSE, TABLECHOOSER_HASGEO_COLUMN, and TRUE.

Referenced by pgui_create_tablechooser_dialog().

774 {
775  /* First determine whether the hasgeo tickbox is selected or not */
776  gboolean geoonly = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(checkbutton_chooser_geoonly));
777  int hasgeo;
778 
779  /* If unticked then we show all tables */
780  if (!geoonly)
781  return TRUE;
782  else
783  {
784  /* Otherwise we only show the tables with geo columns */
785  gtk_tree_model_get(GTK_TREE_MODEL(model), iter, TABLECHOOSER_HASGEO_COLUMN, &hasgeo, -1);
786  if (hasgeo)
787  return TRUE;
788  else
789  return FALSE;
790  }
791 
792  return FALSE;
793 }
static GtkWidget * checkbutton_chooser_geoonly
#define FALSE
Definition: dbfopen.c:169
#define TRUE
Definition: dbfopen.c:170

Here is the caller graph for this function: