diff options
| author | Manolo Gouy <Manolo> | 2014-11-13 12:36:57 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2014-11-13 12:36:57 +0000 |
| commit | b0c7a6f509b4ba0ddc9661dc2b19d987a8d72b33 (patch) | |
| tree | 32f39770799a799951e7192881463b1c99430760 /src/Fl_Native_File_Chooser_GTK.cxx | |
| parent | 42a2e9c64fdca0bfe06f0f6750ec0ef83dcbbbdc (diff) | |
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
Diffstat (limited to 'src/Fl_Native_File_Chooser_GTK.cxx')
| -rw-r--r-- | src/Fl_Native_File_Chooser_GTK.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
