Statusbar: link session property dialog for format & timecode

This commit is contained in:
Robin Gareus 2020-03-30 01:09:00 +02:00
parent 65e34719bb
commit b49764edf5
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
4 changed files with 44 additions and 5 deletions

View file

@ -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;
}