PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ table_chooser_visibility_func()

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

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

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

References checkbutton_chooser_geoonly, FALSE, TABLECHOOSER_HASGEO_COLUMN, and TRUE.

Referenced by pgui_create_tablechooser_dialog().

Here is the caller graph for this function: