patch from lincoln to make MIDI track height changes no longer just grow note height...
[ardour.git] / gtk2_ardour / midi_tracer.cc
index c757ea3fff8963778d32d53e24b9bbcba3198509..3da5e33be9fc63eccc54cb85700b39e8b182a198 100644 (file)
@@ -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));
@@ -251,7 +256,7 @@ MidiTracer::tracer (Parser&, byte* msg, size_t len)
        fifo.write (&buf, 1);
 
        if (!update_queued) {
-               gui_context()->call_slot (boost::bind (&MidiTracer::update, this));
+               gui_context()->call_slot (invalidator (*this), boost::bind (&MidiTracer::update, this));
                update_queued = true;
        }
 }