diff --git a/gtk2_ardour/session_dialog.logic.cc b/gtk2_ardour/session_dialog.logic.cc index 65876b5dfc..2eb793fba8 100644 --- a/gtk2_ardour/session_dialog.logic.cc +++ b/gtk2_ardour/session_dialog.logic.cc @@ -49,6 +49,11 @@ #include "i18n.h" #include "utils.h" +#ifdef _WIN32 +#include +#include +#endif + using namespace std; using namespace Gtk; using namespace Gdk; @@ -137,6 +142,38 @@ SessionDialog::session_selected () void SessionDialog::on_new_session (WavesButton*) { + /* +#ifdef __APPLE__ + cout<<"APPLE works 2\n"<set_active (false); + } + hide(); + _selection_type = NewSession; + response (Gtk::RESPONSE_ACCEPT); + } + + return; +#endif // _WIN32 + Gtk::FileChooserDialog dialog(*this, _("Create New Session"), Gtk::FILE_CHOOSER_ACTION_SAVE); dialog.add_button ("CANCEL", Gtk::RESPONSE_CANCEL); @@ -269,6 +306,38 @@ SessionDialog::on_open_selected (WavesButton*) void SessionDialog::on_open_saved_session (WavesButton*) { + /* +#ifdef __APPLE__ + cout<<"APPLE works 2\n"<set_active(false); + } + _selection_type = SavedSession; + hide(); + response (Gtk::RESPONSE_ACCEPT); + } + + return; +#endif // _WIN32 + Gtk::FileChooserDialog dialog(*this, _("Select Saved Session")); dialog.add_button("CANCEL", Gtk::RESPONSE_CANCEL); dialog.add_button("OK", Gtk::RESPONSE_OK);