From 005ff7e31b2eb0c292055948e8bd359457640937 Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 10 May 2016 13:10:41 +0000 Subject: [PATCH] GTK: fix GTK3 build. --- src/gtk/gtkmain.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gtk/gtkmain.cpp b/src/gtk/gtkmain.cpp index ce25d357..6f33eb7c 100644 --- a/src/gtk/gtkmain.cpp +++ b/src/gtk/gtkmain.cpp @@ -1080,9 +1080,15 @@ static std::string ConvertFilters(std::string active, const FileFilter ssFilters } filter->set_name(filter->get_name() + " (" + desc + ")"); +#ifdef HAVE_GTK3 + chooser->add_filter(filter); + if(is_active) + chooser->set_filter(filter); +#else chooser->add_filter(*filter); if(is_active) chooser->set_filter(*filter); +#endif } return active;