From: John Darrington Date: Fri, 1 Jul 2011 16:00:49 +0000 (+0200) Subject: Filter the data file list by mime type instead of file extension X-Git-Tag: v0.7.9~252 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8e6005af6863801752a25731fb4364119cd8831;p=pspp-builds.git Filter the data file list by mime type instead of file extension --- diff --git a/src/ui/gui/psppire-data-window.c b/src/ui/gui/psppire-data-window.c index fdfe8c96..7fc3ab83 100644 --- a/src/ui/gui/psppire-data-window.c +++ b/src/ui/gui/psppire-data-window.c @@ -1137,10 +1137,8 @@ psppire_data_window_finish_init (PsppireDataWindow *de, { GtkRecentFilter *filter = gtk_recent_filter_new (); - gtk_recent_filter_add_pattern (filter, "*.sav"); - gtk_recent_filter_add_pattern (filter, "*.SAV"); - gtk_recent_filter_add_pattern (filter, "*.por"); - gtk_recent_filter_add_pattern (filter, "*.POR"); + gtk_recent_filter_add_mime_type (filter, "application/x-spss-sav"); + gtk_recent_filter_add_mime_type (filter, "application/x-spss-por"); gtk_recent_chooser_set_sort_type (GTK_RECENT_CHOOSER (menu_data), GTK_RECENT_SORT_MRU);