diff options
author | Robin Gareus <robin@gareus.org> | 2016-12-19 13:38:05 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-12-19 13:38:05 +0100 |
commit | ae6a5c95d73a1f1b32e0939942e9843e20a9fb03 (patch) | |
tree | 7b033b39334cb2ac524176d86a4e0cd1f9685bfc /gtk2_ardour/canvas_test.cc | |
parent | 004431426dd3b868f8b6fda814e03b7d5da06680 (diff) |
update canvas test tool
Diffstat (limited to 'gtk2_ardour/canvas_test.cc')
-rw-r--r-- | gtk2_ardour/canvas_test.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk2_ardour/canvas_test.cc b/gtk2_ardour/canvas_test.cc index 9ccc242813..ff1063a837 100644 --- a/gtk2_ardour/canvas_test.cc +++ b/gtk2_ardour/canvas_test.cc @@ -25,6 +25,7 @@ #include "canvas/colors.h" #include "canvas/scroll_group.h" #include "canvas/text.h" +#include "canvas/widget.h" #include "ardour_button.h" #include "ui_config.h" @@ -140,7 +141,6 @@ CANVAS_UI::CANVAS_UI (int *argcp, char **argvp[], const char* localedir) test_button.set_text ("Don't click me"); b->pack_start (*l, false, 0); - b->pack_start (test_button, false, 0); b->pack_start (*canvas, true, 0); _main_window.add (*b); @@ -168,8 +168,7 @@ CANVAS_UI::initialize_canvas (ArdourCanvas::Canvas& canvas) ScrollGroup* scroll_group = new ScrollGroup (canvas.root(), ScrollGroup::ScrollSensitivity (ScrollGroup::ScrollsVertically|ScrollGroup::ScrollsHorizontally)); - Text* text = new Text (scroll_group); - text->set ("Canvas Text"); + ArdourCanvas::Widget* w = new ArdourCanvas::Widget (scroll_group, test_button); return new ArdourCanvas::Container (scroll_group); } |