From b0c7a6f509b4ba0ddc9661dc2b19d987a8d72b33 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 13 Nov 2014 12:36:57 +0000 Subject: 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 --- src/Fl_Native_File_Chooser_GTK.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_Native_File_Chooser_GTK.cxx b/src/Fl_Native_File_Chooser_GTK.cxx index 1b4751107..bc5bd6862 100644 --- a/src/Fl_Native_File_Chooser_GTK.cxx +++ b/src/Fl_Native_File_Chooser_GTK.cxx @@ -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) -- cgit v1.2.3