mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-28 16:08:12 +01:00
make that status-bar error change actually compile
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@6023 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
049e128256
commit
c3e7746e36
2 changed files with 8 additions and 4 deletions
|
|
@ -768,7 +768,7 @@ class ARDOUR_UI : public Gtkmm2ext::UI
|
|||
void display_message (const char *prefix, gint prefix_len,
|
||||
Glib::RefPtr<Gtk::TextBuffer::Tag> ptag, Glib::RefPtr<Gtk::TextBuffer::Tag> mtag, const char *msg);
|
||||
Gtk::Label status_bar_label;
|
||||
void status_bar_button_press (GdkEventButton*);
|
||||
bool status_bar_button_press (GdkEventButton*);
|
||||
Gtk::ToggleButton error_log_button;
|
||||
|
||||
void loading_message (const std::string& msg);
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ ARDOUR_UI::setup_windows ()
|
|||
EventBox* status_bar_event_box = manage (new EventBox);
|
||||
|
||||
status_bar_event_box->add (status_bar_label);
|
||||
status_bar_label->add_events (Gdk::BUTTON_PRESS_MASK|Gdk::BUTTON_RELEASE_MASK);
|
||||
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_log_button, false, false);
|
||||
|
|
@ -108,18 +108,22 @@ ARDOUR_UI::setup_windows ()
|
|||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
bool
|
||||
ARDOUR_UI::status_bar_button_press (GdkEventButton* ev)
|
||||
{
|
||||
bool handled = false;
|
||||
|
||||
switch (ev->button) {
|
||||
case 1:
|
||||
status_bar_label.set_text ("");
|
||||
handled = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
return handled;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
ARDOUR_UI::display_message (const char *prefix, gint prefix_len, RefPtr<TextBuffer::Tag> ptag, RefPtr<TextBuffer::Tag> mtag, const char *msg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue