Skip to content

Commit

Permalink
Enable Open History Button by default.
Browse files Browse the repository at this point in the history
The implementation plan is make it file extenstion sensitive,
enable only when *.sfg file selected.
Gtk::FileChooser::signal_selection_changed
etl::filename_extension(filename) == ".sfg"
  • Loading branch information
jcome committed Nov 27, 2014
1 parent ffd9ccf commit fcb394d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions synfig-studio/src/gui/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2345,6 +2345,7 @@ App::dialog_open_file_with_history_button(const std::string &title, std::string
dialog->set_current_folder(prev_path);
dialog->add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
dialog->add_button(_("Open history"), RESPONSE_ACCEPT_WITH_HISTORY);
dialog->set_response_sensitive(RESPONSE_ACCEPT_WITH_HISTORY, true);
dialog->add_button(Gtk::Stock::OPEN, Gtk::RESPONSE_ACCEPT);

// File filters
Expand Down

0 comments on commit fcb394d

Please sign in to comment.