summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui_ed.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-03-30 01:09:00 +0200
committerRobin Gareus <robin@gareus.org>2020-03-30 01:10:00 +0200
commitb49764edf57e30179706aa36a0aa0e2a7dff48ca (patch)
tree0bba3b4fc9b338d46c587ca59d0965c14fc9a828 /gtk2_ardour/ardour_ui_ed.cc
parent65e34719bbaf6bb80a87ad9169beabf0cb6e999d (diff)
Statusbar: link session property dialog for format & timecode
Diffstat (limited to 'gtk2_ardour/ardour_ui_ed.cc')
-rw-r--r--gtk2_ardour/ardour_ui_ed.cc17
1 files changed, 14 insertions, 3 deletions
diff --git a/gtk2_ardour/ardour_ui_ed.cc b/gtk2_ardour/ardour_ui_ed.cc
index 4455b6ccde..970b95cc4b 100644
--- a/gtk2_ardour/ardour_ui_ed.cc
+++ b/gtk2_ardour/ardour_ui_ed.cc
@@ -6,7 +6,7 @@
* Copyright (C) 2006-2012 David Robillard <d@drobilla.net>
* Copyright (C) 2007-2012 Carl Hetherington <carl@carlh.net>
* Copyright (C) 2008 Hans Baier <hansfbaier@googlemail.com>
- * Copyright (C) 2013-2019 Robin Gareus <robin@gareus.org>
+ * Copyright (C) 2013-2020 Robin Gareus <robin@gareus.org>
* Copyright (C) 2014-2019 Ben Loftis <ben@harrisonconsoles.com>
* Copyright (C) 2015 André Nusser <andre.nusser@googlemail.com>
*
@@ -719,6 +719,8 @@ ARDOUR_UI::build_menu_bar ()
EventBox* ev_dsp = manage (new EventBox);
EventBox* ev_path = manage (new EventBox);
+ EventBox* ev_format = manage (new EventBox);
+ EventBox* ev_timecode = manage (new EventBox);
Gtk::HBox* hbox = manage (new Gtk::HBox);
hbox->show ();
@@ -739,6 +741,13 @@ ARDOUR_UI::build_menu_bar ()
ev_dsp->add (dsp_load_label);
ev_path->add (session_path_label);
+ ev_format->add (format_label);
+ ev_timecode->add (timecode_format_label);
+
+ ev_dsp->show ();
+ ev_path->show ();
+ ev_format->show ();
+ ev_timecode->show ();
#ifdef __APPLE__
use_menubar_as_top_menubar ();
@@ -752,8 +761,8 @@ ARDOUR_UI::build_menu_bar ()
hbox->pack_end (*ev_dsp, false, false, 6);
hbox->pack_end (disk_space_label, false, false, 6);
hbox->pack_end (sample_rate_label, false, false, 6);
- hbox->pack_end (timecode_format_label, false, false, 6);
- hbox->pack_end (format_label, false, false, 6);
+ hbox->pack_end (*ev_timecode, false, false, 6);
+ hbox->pack_end (*ev_format, false, false, 6);
hbox->pack_end (peak_thread_work_label, false, false, 6);
hbox->pack_end (*ev_path, false, false, 6);
@@ -778,6 +787,8 @@ ARDOUR_UI::build_menu_bar ()
ev_dsp->signal_button_release_event().connect (sigc::mem_fun (*this, &ARDOUR_UI::xrun_button_release));
ev_path->signal_button_press_event().connect (sigc::mem_fun (*this, &ARDOUR_UI::path_button_press));
+ ev_format->signal_button_press_event().connect (sigc::mem_fun (*this, &ARDOUR_UI::format_button_press));
+ ev_timecode->signal_button_press_event().connect (sigc::mem_fun (*this, &ARDOUR_UI::timecode_button_press));
}
void