diff options
author | Robin Gareus <robin@gareus.org> | 2013-07-28 15:54:13 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-07-28 15:54:13 +0200 |
commit | a02e0e6c8dcb0464fd7d746cf878c0bd2f4278c1 (patch) | |
tree | c3acdd3401adeeab4d64c92ed073088e193671d7 /gtk2_ardour | |
parent | 16339aa4464ddadbbaeb19cc16b8bb146d2ddc98 (diff) |
fix meterbridge window on OSX
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/meterbridge.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/meterbridge.cc b/gtk2_ardour/meterbridge.cc index f59fbfd693..a2bcf5cc06 100644 --- a/gtk2_ardour/meterbridge.cc +++ b/gtk2_ardour/meterbridge.cc @@ -342,6 +342,10 @@ Meterbridge::on_size_request (Gtk::Requisition* r) geom.max_width = mr.width + metrics_left.get_width() + metrics_right.get_width(); geom.max_height = max_height; +#ifndef GTKOSX + /* on OSX this leads to a constant live-loop: show/hide scrollbar + * on Linux, the window is resized IFF the scrollbar was not visible + */ const Gtk::Scrollbar * hsc = scroller.get_hscrollbar(); Glib::RefPtr<Gdk::Screen> screen = get_screen (); Gdk::Rectangle monitor_rect; @@ -356,6 +360,7 @@ Meterbridge::on_size_request (Gtk::Requisition* r) r->width = geom.max_width; r->height = h; } +#endif if (cur_max_width != geom.max_width) { cur_max_width = geom.max_width; |