psppire-data-window: Set default filter in File|Save As to show all files. 20131116030519/pspp
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 16 Nov 2013 04:32:28 +0000 (20:32 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 16 Nov 2013 04:32:28 +0000 (20:32 -0800)
The File|Save As dialog box showed "System Files" in two places: in the
filter dropdown and in the format dropdown.  It was surprising to users
that changing the filter dropdown had no effect on the format of the file
actually saved.  This commit makes it more obvious which dropdown needs to
be changed, by only showing "System Files" in the right place.

Reported by Harry Thijssen.
Bug #39648.

src/ui/gui/psppire-data-window.c

index 2a56fa66662e0f577a27fe281b05e779bb37e6d6..ca4f21e2219236f07db4bbeb626ad6d9eda59908 100644 (file)
@@ -501,6 +501,7 @@ data_pick_filename (PsppireWindow *window)
   gtk_file_filter_set_name (filter, _("All Files"));
   gtk_file_filter_add_pattern (filter, "*");
   gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (dialog), filter);
+  gtk_file_chooser_set_filter (GTK_FILE_CHOOSER (dialog), filter);
 
   {
     GtkCellRenderer *cell;