diff options
author | David Robillard <d@drobilla.net> | 2009-02-15 19:44:27 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-02-15 19:44:27 +0000 |
commit | 166395c96b8a85d90b9785e629c739494494130f (patch) | |
tree | ad688f25e8298519f63829e926a09d8739fbf5b0 /gtk2_ardour/canvas-note.h | |
parent | ecaf107ed3dd2bb3443a92fc3dd9cf566d3439e3 (diff) |
Fix genererally retarded and broken note range / diskstream display / etc. related things (correctly display region contents on initial session load).
git-svn-id: svn://localhost/ardour2/branches/3.0@4583 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/canvas-note.h')
-rw-r--r-- | gtk2_ardour/canvas-note.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk2_ardour/canvas-note.h b/gtk2_ardour/canvas-note.h index 0f5d428ef1..46f4bbee35 100644 --- a/gtk2_ardour/canvas-note.h +++ b/gtk2_ardour/canvas-note.h @@ -41,6 +41,9 @@ public: void set_outline_color(uint32_t c) { property_outline_color_rgba() = c; hide(); show(); } void set_fill_color(uint32_t c) { property_fill_color_rgba() = c; hide(); show(); } + void show() { SimpleRect::show(); } + void hide() { SimpleRect::hide(); } + bool on_event(GdkEvent* ev); enum NoteEnd { @@ -58,16 +61,12 @@ public: MidiRegionView& region, Group& group, const boost::shared_ptr<NoteType> note = boost::shared_ptr<NoteType>()) - : SimpleRect(group), CanvasNoteEvent(region, this, note), _note_state(None) { } protected: NoteState _note_state; - -private: - }; } // namespace Gnome |