Fix error in Gnome file dialog where a file filter did not work if it did not begin with *

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10452 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy
2014-11-13 12:36:57 +00:00
parent 42a2e9c64f
commit b0c7a6f509
+1 -1
View File
@@ -351,7 +351,7 @@ gboolean Fl_GTK_File_Chooser::custom_gtk_filter_function(const GtkFileFilterInfo
p->running->changed_output_type(p->filter);
p->running->previous_filter = p->filter;
}
return (gboolean)fl_filename_match(info->filename, p->filter);
return (gboolean)fl_filename_match(fl_filename_name(info->filename), p->filter);
}
void Fl_GTK_File_Chooser::free_pair(Fl_GTK_File_Chooser::pair *p)