PostGIS 3.0.6dev-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 769 of file shp2pgsql-gui.c.

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