From: Mark Cave-Ayland Date: Tue, 29 Dec 2009 08:52:47 +0000 (+0000) Subject: Add a filter name to the shapefile file selector; this is just a cosmetic fix. X-Git-Tag: 1.5.0b1~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6602e5c1cc351b66734d94a2ab218fdd77cb8322;p=postgis Add a filter name to the shapefile file selector; this is just a cosmetic fix. git-svn-id: http://svn.osgeo.org/postgis/trunk@5059 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/loader/shp2pgsql-gui.c b/loader/shp2pgsql-gui.c index 0ad1bf3a1..afbd36ce1 100644 --- a/loader/shp2pgsql-gui.c +++ b/loader/shp2pgsql-gui.c @@ -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);