changes for OSX/SAE

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2475 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2007-09-20 18:04:47 +00:00
parent 5934325561
commit 47e8a7ac4a
19 changed files with 177 additions and 50 deletions

View file

@ -68,6 +68,7 @@ UI::UI (string namestr, int *argc, char ***argv)
tips = new Tooltips;
_active = false;
_auto_display_errors = true;
if (!theGtkUI) {
theGtkUI = this;
@ -482,22 +483,35 @@ UI::process_error_message (Transmitter::Channel chn, const char *str)
display_message (prefix, prefix_len, ptag, mtag, str);
if (!errors->is_visible()) {
toggle_errors();
if (_auto_display_errors) {
show_error_log ();
}
}
errors->text().get_buffer()->end_user_action();
}
void
UI::show_error_log ()
{
errors->set_position (WIN_POS_CENTER);
errors->show_all ();
errors->present ();
}
void
UI::hide_error_log ()
{
errors->hide ();
}
void
UI::toggle_errors ()
{
if (!errors->is_visible()) {
errors->set_position (WIN_POS_MOUSE);
errors->show ();
show_error_log ();
} else {
errors->hide ();
hide_error_log ();
}
}