summaryrefslogtreecommitdiff
path: root/gtk2_ardour/tempo_lines.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-04-04 00:32:52 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-04-04 00:32:52 -0400
commitaaea166135ace01709f7e0be64f40be80f4107ec (patch)
tree0e794ef7a723e4aaf909b841a6816e405b4ceca1 /gtk2_ardour/tempo_lines.h
parent1d8bac08c0c00d44e22c581768a275e1b21a99a7 (diff)
initial commit of hand merging, plus getting "ancient" waf script to work correctly
Diffstat (limited to 'gtk2_ardour/tempo_lines.h')
-rw-r--r--gtk2_ardour/tempo_lines.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/gtk2_ardour/tempo_lines.h b/gtk2_ardour/tempo_lines.h
index 1ab71e0681..defe07226c 100644
--- a/gtk2_ardour/tempo_lines.h
+++ b/gtk2_ardour/tempo_lines.h
@@ -23,11 +23,9 @@
#include <boost/pool/pool.hpp>
#include <boost/pool/pool_alloc.hpp>
#include "ardour/tempo.h"
-#include "canvas.h"
-#include "simpleline.h"
typedef boost::fast_pool_allocator<
- std::pair<const double, ArdourCanvas::SimpleLine*>,
+ std::pair<const double, ArdourCanvas::Line*>,
boost::default_user_allocator_new_delete,
boost::details::pool::null_mutex,
8192>
@@ -35,7 +33,7 @@ typedef boost::fast_pool_allocator<
class TempoLines {
public:
- TempoLines(ArdourCanvas::Canvas& canvas, ArdourCanvas::Group* group, double screen_height);
+ TempoLines(ArdourCanvas::GtkCanvasViewport& canvas, ArdourCanvas::Group* group, double screen_height);
void tempo_map_changed();
@@ -47,10 +45,10 @@ public:
void hide();
private:
- typedef std::map<double, ArdourCanvas::SimpleLine*, std::less<double>, MapAllocator> Lines;
+ typedef std::map<double, ArdourCanvas::Line*, std::less<double>, MapAllocator> Lines;
Lines _lines;
- ArdourCanvas::Canvas& _canvas;
+ ArdourCanvas::GtkCanvasViewport& _canvas_viewport;
ArdourCanvas::Group* _group;
double _clean_left;
double _clean_right;