diff options
author | Carl Hetherington <carl@carlh.net> | 2012-03-05 13:18:43 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-03-05 13:18:43 +0000 |
commit | a7a445c044b5103241bf33c2e30ff1d7f624460e (patch) | |
tree | df0e3763daf35273bce6a2334b66f52e6ecc9197 /gtk2_ardour/ardour_ui.cc | |
parent | 1eaf450e0349daa2c5c44195a27f0253b9d1f19b (diff) |
Remove some unused code.
git-svn-id: svn://localhost/ardour2/branches/3.0@11596 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 111 |
1 files changed, 0 insertions, 111 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 351e28ac99..ebfa51fdb7 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -651,59 +651,6 @@ ARDOUR_UI::update_autosave () } void -ARDOUR_UI::backend_audio_error (bool we_set_params, Gtk::Window* toplevel) -{ - string title; - if (we_set_params) { - title = string_compose (_("%1 could not start JACK"), PROGRAM_NAME); - } else { - title = string_compose (_("%1 could not connect to JACK."), PROGRAM_NAME); - } - - MessageDialog win (title, - false, - Gtk::MESSAGE_INFO, - Gtk::BUTTONS_NONE); - - if (we_set_params) { - win.set_secondary_text(_("There are several possible reasons:\n\ -\n\ -1) You requested audio parameters that are not supported..\n\ -2) JACK is running as another user.\n\ -\n\ -Please consider the possibilities, and perhaps try different parameters.")); - } else { - win.set_secondary_text(_("There are several possible reasons:\n\ -\n\ -1) JACK is not running.\n\ -2) JACK is running as another user, perhaps root.\n\ -3) There is already another client called \"ardour\".\n\ -\n\ -Please consider the possibilities, and perhaps (re)start JACK.")); - } - - if (toplevel) { - win.set_transient_for (*toplevel); - } - - if (we_set_params) { - win.add_button (Stock::OK, RESPONSE_CLOSE); - } else { - win.add_button (Stock::QUIT, RESPONSE_CLOSE); - } - - win.set_default_response (RESPONSE_CLOSE); - - win.show_all (); - win.set_position (Gtk::WIN_POS_CENTER); - pop_back_splash (win); - - /* we just don't care about the result, but we want to block */ - - win.run (); -} - -void ARDOUR_UI::startup () { Application* app = Application::instance (); @@ -1192,13 +1139,6 @@ ARDOUR_UI::update_wall_clock () return TRUE; } -gint -ARDOUR_UI::session_menu (GdkEventButton */*ev*/) -{ - session_popup_menu->popup (0, 0); - return TRUE; -} - void ARDOUR_UI::redisplay_recent_sessions () { @@ -1540,25 +1480,6 @@ restart JACK with more ports."), PROGRAM_NAME)); } void -ARDOUR_UI::do_transport_locate (framepos_t new_position, bool with_roll) -{ - framecnt_t _preroll = 0; - - if (_session) { - // XXX CONFIG_CHANGE FIX - requires AnyTime handling - // _preroll = _session->convert_to_frames_at (new_position, Config->get_preroll()); - - if (new_position > _preroll) { - new_position -= _preroll; - } else { - new_position = 0; - } - - _session->request_locate (new_position, with_roll); - } -} - -void ARDOUR_UI::transport_goto_start () { if (_session) { @@ -1651,14 +1572,6 @@ ARDOUR_UI::transport_stop () } void -ARDOUR_UI::transport_stop_and_forget_capture () -{ - if (_session) { - _session->request_stop (true, true); - } -} - -void ARDOUR_UI::remove_last_capture() { if (editor) { @@ -2098,12 +2011,6 @@ ARDOUR_UI::do_engine_start () } void -ARDOUR_UI::setup_theme () -{ - theme_manager->setup_theme(); -} - -void ARDOUR_UI::update_clocks () { if (!editor || !editor->dragging_playhead()) { @@ -2123,18 +2030,6 @@ ARDOUR_UI::stop_clocking () clock_signal_connection.disconnect (); } -void -ARDOUR_UI::toggle_clocking () -{ -#if 0 - if (clock_button.get_active()) { - start_clocking (); - } else { - stop_clocking (); - } -#endif -} - gint ARDOUR_UI::_blink (void *arg) @@ -2554,12 +2449,6 @@ ARDOUR_UI::idle_load (const std::string& path) } void -ARDOUR_UI::end_loading_messages () -{ - // hide_splash (); -} - -void ARDOUR_UI::loading_message (const std::string& msg) { if (ARDOUR_COMMAND_LINE::no_splash) { |