GTK: fix GTK3 build.

pull/4/head
whitequark 2016-05-10 13:10:41 +00:00
parent ab8fdcb273
commit 005ff7e31b
1 changed files with 6 additions and 0 deletions

View File

@ -1080,9 +1080,15 @@ static std::string ConvertFilters(std::string active, const FileFilter ssFilters
} }
filter->set_name(filter->get_name() + " (" + desc + ")"); 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); chooser->add_filter(*filter);
if(is_active) if(is_active)
chooser->set_filter(*filter); chooser->set_filter(*filter);
#endif
} }
return active; return active;