use new action map API instead of ActionManager::get_action
[ardour.git] / gtk2_ardour / export_file_notebook.cc
index deeeba8828d0c81c7d0820bd34c28ed4b3b1079e..a91a253b3cf2f2e430a83cb350ff2011cadf7208 100644 (file)
@@ -198,15 +198,15 @@ ExportFileNotebook::handle_page_change (GtkNotebookPage*, uint32_t page)
 ExportFileNotebook::FilePage::FilePage (Session * s, ManagerPtr profile_manager, ExportFileNotebook * parent, uint32_t number,
                                         ExportProfileManager::FormatStatePtr format_state,
                                         ExportProfileManager::FilenameStatePtr filename_state) :
-  format_state (format_state),
-  filename_state (filename_state),
-  profile_manager (profile_manager),
-
-  format_label (_("Format"), Gtk::ALIGN_LEFT),
-  filename_label (_("Location"), Gtk::ALIGN_LEFT),
-  soundcloud_upload_button (_("Upload to Soundcloud")),
-  analysis_button (_("Analyze Exported Audio")),
-  tab_number (number)
+       format_state (format_state),
+       filename_state (filename_state),
+       profile_manager (profile_manager),
+
+       format_label (_("Format"), Gtk::ALIGN_LEFT),
+       filename_label (_("Location"), Gtk::ALIGN_LEFT),
+       soundcloud_upload_button (_("Upload to Soundcloud")),
+       analysis_button (_("Analyze Exported Audio")),
+       tab_number (number)
 {
        set_border_width (12);
 
@@ -252,6 +252,7 @@ ExportFileNotebook::FilePage::FilePage (Session * s, ManagerPtr profile_manager,
        format_selector.FormatEdited.connect (sigc::mem_fun (*this, &ExportFileNotebook::FilePage::save_format_to_manager));
        format_selector.FormatRemoved.connect (sigc::mem_fun (*profile_manager, &ExportProfileManager::remove_format_profile));
        format_selector.NewFormat.connect (sigc::mem_fun (*profile_manager, &ExportProfileManager::get_new_format));
+       format_selector.FormatReverted.connect (sigc::mem_fun (*profile_manager, &ExportProfileManager::revert_format_profile));
 
        format_selector.CriticalSelectionChanged.connect (
                sigc::mem_fun (*this, &ExportFileNotebook::FilePage::critical_selection_changed));