From: Ben Pfaff Date: Sat, 16 Nov 2013 04:32:28 +0000 (-0800) Subject: psppire-data-window: Set default filter in File|Save As to show all files. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=01e1f5874de57b945a4f1eb4cd0939b96c6a3a06;p=pspp psppire-data-window: Set default filter in File|Save As to show all files. 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. --- diff --git a/src/ui/gui/psppire-data-window.c b/src/ui/gui/psppire-data-window.c index 2a56fa6666..ca4f21e221 100644 --- a/src/ui/gui/psppire-data-window.c +++ b/src/ui/gui/psppire-data-window.c @@ -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;