PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ pgui_create_folderchooser_dialog()

static void pgui_create_folderchooser_dialog ( void  )
static

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

References _, dialog_folderchooser, and window_main.

Referenced by main().

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