diff options
author | Robin Gareus <robin@gareus.org> | 2013-10-12 22:55:54 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-10-12 22:56:08 +0200 |
commit | c2b2953f8c051743729bfa3328336abf19a25587 (patch) | |
tree | 6323409c95dd74d2c8801eb733fdcb8c17805450 /gtk2_ardour/export_video_dialog.cc | |
parent | f7c54f1435da2f87a40bf8549b8d732995b84bfc (diff) |
export video-range: add to context menu
Diffstat (limited to 'gtk2_ardour/export_video_dialog.cc')
-rw-r--r-- | gtk2_ardour/export_video_dialog.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/export_video_dialog.cc b/gtk2_ardour/export_video_dialog.cc index eacc32bde2..2f9df2fb1c 100644 --- a/gtk2_ardour/export_video_dialog.cc +++ b/gtk2_ardour/export_video_dialog.cc @@ -61,7 +61,7 @@ using namespace PBD; using namespace ARDOUR; using namespace VideoUtils; -ExportVideoDialog::ExportVideoDialog (Session* s, TimeSelection &tme) +ExportVideoDialog::ExportVideoDialog (Session* s, TimeSelection &tme, bool range) : ArdourDialog (_("Export Video File ")) , export_range (tme) , outfn_path_label (_("File:"), Gtk::ALIGN_LEFT) @@ -152,7 +152,11 @@ ExportVideoDialog::ExportVideoDialog (Session* s, TimeSelection &tme) if (!export_range.empty()) { insnd_combo.append_text (_("Selected range")); // TODO show export_range.start() -> export_range.end_frame() } - insnd_combo.set_active(0); + if (range) { + insnd_combo.set_active(2); + } else { + insnd_combo.set_active(0); + } outfn_path_entry.set_width_chars(38); outfn_path_entry.set_text (_session->session_directory().export_path() + G_DIR_SEPARATOR +"export.avi"); |