]> granicus.if.org Git - postgis/commitdiff
Add a filter name to the shapefile file selector; this is just a cosmetic fix.
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Tue, 29 Dec 2009 08:52:47 +0000 (08:52 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Tue, 29 Dec 2009 08:52:47 +0000 (08:52 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5059 b70326c6-7e19-0410-871a-916f4a2858ee

loader/shp2pgsql-gui.c

index 0ad1bf3a1e55580136feed4ce59338edcb92f6f0..afbd36ce1a052266199e572c679fb94ccf798d23 100644 (file)
@@ -1002,6 +1002,7 @@ pgui_create_main_window(const SHPCONNECTIONCONFIG *conn)
        gtk_container_set_border_width (GTK_CONTAINER (file_chooser_button_shape), 8);
        file_filter_shape = gtk_file_filter_new();
        gtk_file_filter_add_pattern(GTK_FILE_FILTER(file_filter_shape), "*.shp");
+       gtk_file_filter_set_name(GTK_FILE_FILTER(file_filter_shape), "Shapefiles (*.shp)");
        gtk_file_chooser_add_filter(GTK_FILE_CHOOSER(file_chooser_button_shape), file_filter_shape);
        gtk_container_add (GTK_CONTAINER (frame_shape), file_chooser_button_shape);
        g_signal_connect (G_OBJECT (file_chooser_button_shape), "file-set", G_CALLBACK (pgui_action_shape_file_set), NULL);