mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
canvas: remove intrinsic size concept, fall back to requested size; converge on gtk style size_request
This commit is contained in:
parent
08150c1547
commit
a1c67b4ad7
14 changed files with 258 additions and 188 deletions
|
|
@ -1537,14 +1537,13 @@ GtkCanvasViewport::scrolled ()
|
|||
void
|
||||
GtkCanvasViewport::on_size_request (Gtk::Requisition* req)
|
||||
{
|
||||
Duple minimum;
|
||||
Duple natural;
|
||||
Distance width;
|
||||
Distance height;
|
||||
|
||||
cerr << "GCV::osr()\n";
|
||||
_canvas.root()->preferred_size (minimum, natural);
|
||||
cerr << "size canvas to " << natural << endl;
|
||||
_canvas.request_size (natural);
|
||||
_canvas.root()->size_request (width, height);
|
||||
cerr << "OSR size canvas to " << width << " x " << height << endl;
|
||||
_canvas.request_size (Duple (width, height));
|
||||
|
||||
req->width = natural.width();
|
||||
req->height = natural.height();
|
||||
req->width = width;
|
||||
req->height = height;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue