mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
always make log/error window visible when a non-info message is posted
git-svn-id: svn://localhost/ardour2/branches/3.0@9279 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
071d1185f6
commit
aca373cc82
2 changed files with 16 additions and 1 deletions
|
|
@ -565,13 +565,27 @@ UI::process_error_message (Transmitter::Channel chn, const char *str)
|
||||||
display_message (prefix, prefix_len, ptag, mtag, str);
|
display_message (prefix, prefix_len, ptag, mtag, str);
|
||||||
|
|
||||||
if (!errors->is_visible() && chn != Transmitter::Info) {
|
if (!errors->is_visible() && chn != Transmitter::Info) {
|
||||||
toggle_errors();
|
show_errors ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
errors->text().get_buffer()->end_user_action();
|
errors->text().get_buffer()->end_user_action();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
UI::show_errors ()
|
||||||
|
{
|
||||||
|
Glib::RefPtr<Action> act = ActionManager::get_action (X_("Editor"), X_("toggle-log-window"));
|
||||||
|
if (!act) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
Glib::RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic (act);
|
||||||
|
if (tact) {
|
||||||
|
tact->set_active ();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
UI::toggle_errors ()
|
UI::toggle_errors ()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -117,6 +117,7 @@ class UI : public Receiver, public AbstractUI<UIRequest>
|
||||||
void popup_error (const std::string& text);
|
void popup_error (const std::string& text);
|
||||||
void flush_pending ();
|
void flush_pending ();
|
||||||
void toggle_errors ();
|
void toggle_errors ();
|
||||||
|
void show_errors ();
|
||||||
void touch_display (Touchable *);
|
void touch_display (Touchable *);
|
||||||
void set_tip (Gtk::Widget &w, const gchar *tip);
|
void set_tip (Gtk::Widget &w, const gchar *tip);
|
||||||
void set_tip (Gtk::Widget &w, const std::string &tip);
|
void set_tip (Gtk::Widget &w, const std::string &tip);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue