13
0

update canvas test tool

This commit is contained in:
Robin Gareus 2016-12-19 13:38:05 +01:00
parent 004431426d
commit ae6a5c95d7
2 changed files with 3 additions and 3 deletions

View File

@ -3,3 +3,4 @@ TOP=`dirname "$0"`/..
. $TOP/build/gtk2_ardour/ardev_common_waf.sh
export UBUNTU_MENUPROXY=""
exec $TOP/build/gtk2_ardour/canvas_test "$@"
#exec gdb --args $TOP/build/gtk2_ardour/canvas_test "$@"

View File

@ -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);
}