diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2014-09-03 11:56:31 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2014-09-03 11:56:31 -0500 |
commit | 0ea1238479c9692a2b212cc226b783dce4f1e3c6 (patch) | |
tree | 86203b4e01dde0b09ee4f09a5ac11a3c210e54a1 /gtk2_ardour/ardour_button.cc | |
parent | 6dd114c3f167ed9a65ffbfeba548bca334cd2ff5 (diff) |
ask TAV buttons to have square proportions
Diffstat (limited to 'gtk2_ardour/ardour_button.cc')
-rw-r--r-- | gtk2_ardour/ardour_button.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_button.cc b/gtk2_ardour/ardour_button.cc index 60fad0db32..034f1fc665 100644 --- a/gtk2_ardour/ardour_button.cc +++ b/gtk2_ardour/ardour_button.cc @@ -602,6 +602,13 @@ ArdourButton::on_size_request (Gtk::Requisition* req) } req->width += _corner_radius; + + if ((_tweaks & Square)==Square) { + if (req->width < req->height) + req->width = req->height; + if (req->height < req->width) + req->height = req->width; + } } /** |