Skip to content

Commit

Permalink
Fix #830: Accept GIMP Palette files (.gpl) in Palette Editor Panel. T…
Browse files Browse the repository at this point in the history
  • Loading branch information
morevnaproject committed Aug 11, 2015
1 parent 0bf49df commit a991a41
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions synfig-studio/src/gui/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2452,6 +2452,12 @@ App::dialog_open_file_spal(const std::string &title, std::string &filename, std:
filter_spal->set_name(_("Synfig palette files (*.spal)"));
filter_spal->add_pattern("*.spal");
dialog->add_filter(filter_spal);

// ...and add GIMP color palette file too (*.gpl)
Glib::RefPtr<Gtk::FileFilter> filter_gpl = Gtk::FileFilter::create();
filter_gpl->set_name(_("GIMP palette files (*.gpl)"));
filter_gpl->add_pattern("*.gpl");
dialog->add_filter(filter_gpl);

if (filename.empty())
dialog->set_filename(prev_path);
Expand Down

0 comments on commit a991a41

Please sign in to comment.