summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-04-24 21:16:03 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-04-24 21:16:03 +0000
commit1dc08128787df959e639fd7448e56779e49de1a6 (patch)
treeff2b910f50fb94aa694072aa7c6ef82a78732d7a /gtk2_ardour
parentcc4e4ffe40446a851ff14a0f9f5ad934bd70cc46 (diff)
make "New Session" open NSD on the right page
git-svn-id: svn://localhost/ardour2/trunk@1742 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/ardour_ui.cc1
-rw-r--r--gtk2_ardour/new_session_dialog.cc7
-rw-r--r--gtk2_ardour/new_session_dialog.h1
3 files changed, 8 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index 850f29fe0a..74234bb12a 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -1763,6 +1763,7 @@ ARDOUR_UI::new_session (std::string predetermined_path)
new_session_dialog->set_name (predetermined_path);
new_session_dialog->reset_recent();
new_session_dialog->show();
+ new_session_dialog->set_current_page (0);
do {
response = new_session_dialog->run ();
diff --git a/gtk2_ardour/new_session_dialog.cc b/gtk2_ardour/new_session_dialog.cc
index 74ff9d022c..13d8123836 100644
--- a/gtk2_ardour/new_session_dialog.cc
+++ b/gtk2_ardour/new_session_dialog.cc
@@ -575,7 +575,12 @@ int
NewSessionDialog::get_current_page()
{
return m_notebook->get_current_page();
-
+}
+
+void
+NewSessionDialog::set_current_page(int page)
+{
+ return m_notebook->set_current_page (page);
}
void
diff --git a/gtk2_ardour/new_session_dialog.h b/gtk2_ardour/new_session_dialog.h
index 0d4124f8cc..c22af7561c 100644
--- a/gtk2_ardour/new_session_dialog.h
+++ b/gtk2_ardour/new_session_dialog.h
@@ -82,6 +82,7 @@ public:
bool connect_outs_to_master() const;
bool connect_outs_to_physical() const ;
int get_current_page();
+ void set_current_page (int);
void reset_recent();
// reset everything to default values.