mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Use non-deprecated Gtk::Widget::size_request API in canvas library
This commit is contained in:
parent
fd502d3175
commit
de2c1b10b6
1 changed files with 1 additions and 3 deletions
|
|
@ -91,11 +91,9 @@ Widget::compute_bounding_box () const
|
|||
{
|
||||
std::cerr << "cbbox for widget\n";
|
||||
|
||||
GtkRequisition req = { 0, 0 };
|
||||
GtkRequisition req = _widget.size_request ();
|
||||
Gtk::Allocation alloc;
|
||||
|
||||
_widget.size_request (req);
|
||||
|
||||
std::cerr << "widget wants " << req.width << " x " << req.height << "\n";
|
||||
|
||||
_bounding_box = Rect (0, 0, req.width, req.height);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue