Fix size-request call
use Requisition Gtk::Widget::size_request () const; and not deprecated void Gtk::Widget::size_request (const Requisition&); Found by PVS-Studio - https://www.viva64.com/en/b/0540/
This commit is contained in:
parent
55ee5d2e50
commit
a593a81db3
@ -153,8 +153,7 @@ TimeAxisView::TimeAxisView (ARDOUR::Session* sess, PublicEditor& ed, TimeAxisVie
|
||||
{
|
||||
boost::scoped_ptr<Gtk::Entry> an_entry (new FocusEntry);
|
||||
an_entry->set_name (X_("TrackNameEditor"));
|
||||
Gtk::Requisition req;
|
||||
an_entry->size_request (req);
|
||||
Gtk::Requisition req = an_entry->size_request ();
|
||||
|
||||
name_label.set_size_request (-1, req.height);
|
||||
name_label.set_ellipsize (Pango::ELLIPSIZE_MIDDLE);
|
||||
|
Loading…
Reference in New Issue
Block a user