From b56ad64ee304c53063ddf67f0654ac10738efc68 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 15 Mar 2010 01:41:01 +0000 Subject: [PATCH] Use checkbuttons rather than togglebuttons the midi tracer as it seems more logical to me. git-svn-id: svn://localhost/ardour2/branches/3.0@6758 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/midi_tracer.cc | 11 ++++++++--- gtk2_ardour/midi_tracer.h | 6 +++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/gtk2_ardour/midi_tracer.cc b/gtk2_ardour/midi_tracer.cc index 08e1af68e1..004e7885ce 100644 --- a/gtk2_ardour/midi_tracer.cc +++ b/gtk2_ardour/midi_tracer.cc @@ -54,9 +54,14 @@ MidiTracer::MidiTracer (const std::string& name, Parser& p) line_count_box.show (); get_action_area()->add (line_count_box); - get_action_area()->add (base_button); - get_action_area()->add(collect_button); - get_action_area()->add (autoscroll_button); + + HBox* bbox = manage (new HBox); + bbox->add (base_button); + bbox->add (collect_button); + bbox->add (autoscroll_button); + bbox->show (); + + get_action_area()->add (*bbox); base_button.signal_toggled().connect (sigc::mem_fun (*this, &MidiTracer::base_toggle)); collect_button.signal_toggled().connect (sigc::mem_fun (*this, &MidiTracer::collect_toggle)); diff --git a/gtk2_ardour/midi_tracer.h b/gtk2_ardour/midi_tracer.h index a3429e9267..278bd037ee 100644 --- a/gtk2_ardour/midi_tracer.h +++ b/gtk2_ardour/midi_tracer.h @@ -44,9 +44,9 @@ class MidiTracer : public ArdourDialog void tracer (MIDI::Parser&, MIDI::byte*, size_t); void update (); - Gtk::ToggleButton autoscroll_button; - Gtk::ToggleButton base_button; - Gtk::ToggleButton collect_button; + Gtk::CheckButton autoscroll_button; + Gtk::CheckButton base_button; + Gtk::CheckButton collect_button; void base_toggle (); void autoscroll_toggle ();