diff options
author | Robin Gareus <robin@gareus.org> | 2020-03-30 01:09:00 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-03-30 01:10:00 +0200 |
commit | b49764edf57e30179706aa36a0aa0e2a7dff48ca (patch) | |
tree | 0bba3b4fc9b338d46c587ca59d0965c14fc9a828 /gtk2_ardour/ardour_ui_dialogs.cc | |
parent | 65e34719bbaf6bb80a87ad9169beabf0cb6e999d (diff) |
Statusbar: link session property dialog for format & timecode
Diffstat (limited to 'gtk2_ardour/ardour_ui_dialogs.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_dialogs.cc | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_ui_dialogs.cc b/gtk2_ardour/ardour_ui_dialogs.cc index c3e441db90..c602c16dd4 100644 --- a/gtk2_ardour/ardour_ui_dialogs.cc +++ b/gtk2_ardour/ardour_ui_dialogs.cc @@ -7,7 +7,7 @@ * Copyright (C) 2007-2012 Carl Hetherington <carl@carlh.net> * Copyright (C) 2007-2015 Tim Mayberry <mojofunk@gmail.com> * Copyright (C) 2007 Doug McLain <doug@nostar.net> - * Copyright (C) 2013-2019 Robin Gareus <robin@gareus.org> + * Copyright (C) 2013-2020 Robin Gareus <robin@gareus.org> * Copyright (C) 2014-2018 Ben Loftis <ben@harrisonconsoles.com> * * This program is free software; you can redistribute it and/or modify @@ -992,3 +992,29 @@ ARDOUR_UI::toggle_mixer_space() mixer->restore_mixer_space (); } } + +bool +ARDOUR_UI::timecode_button_press (GdkEventButton* ev) +{ + if (ev->button != 1 || ev->type != GDK_2BUTTON_PRESS) { + return false; + } + if (_session) { + session_option_editor->show (); + session_option_editor->set_current_page (_("Timecode")); + } + return true; +} + +bool +ARDOUR_UI::format_button_press (GdkEventButton* ev) +{ + if (ev->button != 1 || ev->type != GDK_2BUTTON_PRESS) { + return false; + } + if (_session) { + session_option_editor->show (); + session_option_editor->set_current_page (_("Media")); + } + return true; +} |