warning: Goo is deprecated. Use goocanvas-2.0
I'm trying to implement GooCanvas on my project and I'm getting this warning while compiling with meson ninja
warning: Goo is deprecated. Use goocanvas-2.0
I added the goocanvas.vapi
to my project and renamed it goocanvas-2.0.vapi
otherwise, meson couldn't match it with the dependency:
dependency('goocanvas-2.0')
This is the code snippet I'm using:
var canvas = new Goo.Canvas ();
canvas.set_size_request (600, 450);
canvas.set_bounds (0, 0, 1000, 1000);
var root = canvas.get_root_item ();
var text = Goo.CanvasText.create (root, "Hello There", 0, 0, 30, 2, "font", "Raleway 32");
var rect_item = Goo.CanvasRect.create (root, 100, 100, 400, 400,
"line-width", 5.0,
"radius-x", 100.0,
"radius-y", 100.0,
"stroke-color", "yellow",
"fill-color", "#a8eb12"
);