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.
This commit is contained in:
Robin Gareus 2015-03-16 22:16:38 +01:00
parent c3d76155a9
commit 5c0e3d4f04
2 changed files with 1 additions and 5 deletions

View File

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

View File

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