From 5c0e3d4f043534d0144cb99f8e7ea35b752844a9 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 16 Mar 2015 22:16:38 +0100 Subject: [PATCH] always pack the log-LED into the status widget. not only does this provide consistent look & feel, but now the status-bar can never be empty. Before to this change, a small useless black rectangle remained when all elements were hidden. --- gtk2_ardour/ardour_ui2.cc | 2 -- gtk2_ardour/ardour_ui_ed.cc | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/gtk2_ardour/ardour_ui2.cc b/gtk2_ardour/ardour_ui2.cc index 57bcca34da..3459d0373f 100644 --- a/gtk2_ardour/ardour_ui2.cc +++ b/gtk2_ardour/ardour_ui2.cc @@ -96,12 +96,10 @@ ARDOUR_UI::setup_windows () status_bar_event_box->add_events (Gdk::BUTTON_PRESS_MASK|Gdk::BUTTON_RELEASE_MASK); status_bar_label.set_size_request (300, -1); status_bar_packer->pack_start (*status_bar_event_box, true, true, 6); - status_bar_packer->pack_start (error_alert_button, false, false); status_bar_label.show (); status_bar_event_box->show (); status_bar_packer->show (); - error_alert_button.show (); status_bar_event_box->signal_button_press_event().connect (mem_fun (*this, &ARDOUR_UI::status_bar_button_press)); diff --git a/gtk2_ardour/ardour_ui_ed.cc b/gtk2_ardour/ardour_ui_ed.cc index 33bbb79a8a..ccd048d69d 100644 --- a/gtk2_ardour/ardour_ui_ed.cc +++ b/gtk2_ardour/ardour_ui_ed.cc @@ -515,10 +515,8 @@ ARDOUR_UI::build_menu_bar () disk_space = true; } -#ifndef TOP_MENUBAR hbox->pack_end (error_alert_button, false, false, 2); -#endif - + hbox->pack_end (wall_clock_label, false, false, 2); hbox->pack_end (disk_space_label, false, false, 4); hbox->pack_end (cpu_load_label, false, false, 4);