PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ pgui_create_folderchooser_dialog()

static void pgui_create_folderchooser_dialog ( void  )
static

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

2596 {
2597  GtkFileFilter *file_filter_shape;
2598 
2599  /* Create the dialog */
2600  dialog_folderchooser = gtk_file_chooser_dialog_new( _("Select an output folder"), GTK_WINDOW (window_main),
2601  GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, GTK_STOCK_CANCEL, GTK_RESPONSE_CLOSE, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL);
2602 
2603  /* Filter for .shp files */
2604  file_filter_shape = gtk_file_filter_new();
2605  gtk_file_filter_add_pattern(GTK_FILE_FILTER(file_filter_shape), "*.shp");
2606  gtk_file_filter_set_name(GTK_FILE_FILTER(file_filter_shape), _("Shape Files (*.shp)"));
2607  gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(dialog_folderchooser), file_filter_shape);
2608 
2609  /* Filter for .dbf files */
2610  file_filter_shape = gtk_file_filter_new();
2611  gtk_file_filter_add_pattern(GTK_FILE_FILTER(file_filter_shape), "*.dbf");
2612  gtk_file_filter_set_name(GTK_FILE_FILTER(file_filter_shape), _("DBF Files (*.dbf)"));
2613  gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(dialog_folderchooser), file_filter_shape);
2614 
2615  return;
2616 }
static GtkWidget * dialog_folderchooser
static GtkWidget * window_main
Definition: shp2pgsql-gui.c:50
#define _(String)
Definition: shpcommon.h:24

References _, dialog_folderchooser, and window_main.

Referenced by main().

Here is the caller graph for this function: