mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
Canvas: improve implementation/design of ConstraintPacker::preferred_size()
This commit is contained in:
parent
502a9e80dc
commit
ff6fe51d76
3 changed files with 34 additions and 15 deletions
|
|
@ -35,8 +35,6 @@ main (int argc, char* argv[])
|
|||
|
||||
srandom (time ((time_t) 0));
|
||||
|
||||
cview.set_size_request (100, 100);
|
||||
|
||||
win.add (cview);
|
||||
|
||||
/* Make some items */
|
||||
|
|
@ -75,6 +73,10 @@ main (int argc, char* argv[])
|
|||
|
||||
ConstraintPacker* packer = new ConstraintPacker (c->root());
|
||||
|
||||
/* give it a minimum size */
|
||||
|
||||
packer->set_intrinsic_size (100, 100);
|
||||
|
||||
/* add stuff */
|
||||
|
||||
ConstrainedItem* left = packer->add_constrained (r1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue