Filter the data file list by mime type instead of file extension
authorJohn Darrington <john@darrington.wattle.id.au>
Fri, 1 Jul 2011 16:00:49 +0000 (18:00 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Fri, 1 Jul 2011 16:00:49 +0000 (18:00 +0200)
src/ui/gui/psppire-data-window.c

index fdfe8c96f09ecfa360b34dac40944ae5aaed1199..7fc3ab8376afe084c24a761362eb6557f65f1052 100644 (file)
@@ -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);