From 039a7f544a7c29681988a2be42dbb3a6b2b5feb0 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 16 Feb 2011 01:08:25 +0000 Subject: [PATCH] Make pressing enter in the label or path entries trigger the default dialogue response (fixes #3763). git-svn-id: svn://localhost/ardour2/branches/3.0@8865 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/export_dialog.cc | 1 + gtk2_ardour/export_filename_selector.cc | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/gtk2_ardour/export_dialog.cc b/gtk2_ardour/export_dialog.cc index 77e75ab0a5..83e58d3726 100644 --- a/gtk2_ardour/export_dialog.cc +++ b/gtk2_ardour/export_dialog.cc @@ -131,6 +131,7 @@ ExportDialog::init () //rt_export_button = add_button (_("Realtime Export"), RESPONSE_RT); //fast_export_button = add_button (_("Fast Export"), RESPONSE_FAST); fast_export_button = add_button (_("Export"), RESPONSE_FAST); + set_default_response (RESPONSE_FAST); list_files_button.set_name ("PaddedButton"); diff --git a/gtk2_ardour/export_filename_selector.cc b/gtk2_ardour/export_filename_selector.cc index 3f651161b5..298b56e853 100644 --- a/gtk2_ardour/export_filename_selector.cc +++ b/gtk2_ardour/export_filename_selector.cc @@ -50,10 +50,14 @@ ExportFilenameSelector::ExportFilenameSelector () : include_hbox.pack_start (revision_checkbox, false, false, 3); include_hbox.pack_start (revision_spinbutton, false, false, 3); + label_entry.set_activates_default (); + path_hbox.pack_start (path_label, false, false, 3); path_hbox.pack_start (path_entry, true, true, 3); path_hbox.pack_start (browse_button, false, false, 3); + path_entry.set_activates_default (); + date_format_combo.set_name ("PaddedButton"); time_format_combo.set_name ("PaddedButton"); browse_button.set_name ("PaddedButton");