PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void pgui_create_folderchooser_dialog ( void  )
static

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

References _, dialog_folderchooser, and window_main.

Referenced by main().

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

Here is the caller graph for this function: