mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-04 12:45:45 +01:00
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:
parent
5934325561
commit
47e8a7ac4a
19 changed files with 177 additions and 50 deletions
|
|
@ -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 ();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue