patch from lincoln to make MIDI track height changes no longer just grow note height...
[ardour.git] / gtk2_ardour / midi_tracer.cc
index 08e1af68e1b1944b82dd665077c65ef24d2d4fee..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));
@@ -143,9 +148,9 @@ MidiTracer::tracer (Parser&, byte* msg, size_t len)
                
        case program:
                if (show_hex) {
-                       s += snprintf (&buf[s], bufsize, "%16s chn %2d %02x\n", "Program PropertyChange", (msg[0]&0xf)+1, (int) msg[1]);
+                       s += snprintf (&buf[s], bufsize, "%16s chn %2d %02x\n", "Program Change", (msg[0]&0xf)+1, (int) msg[1]);
                } else {
-                       s += snprintf (&buf[s], bufsize, "%16s chn %2d %-3d\n", "Program PropertyChange", (msg[0]&0xf)+1, (int) msg[1]);
+                       s += snprintf (&buf[s], bufsize, "%16s chn %2d %-3d\n", "Program Change", (msg[0]&0xf)+1, (int) msg[1]);
                }
                break;
                
@@ -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;
        }
 }