diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-19 20:38:53 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-04-19 20:38:53 +0000 |
commit | bb13db6ea189a328dd5cff52a7dfa4f72bc30ba6 (patch) | |
tree | 2e71cda58a6c5cf5e7cdd8e9ebd293e435c1af94 /gtk2_ardour | |
parent | 1524fc2b1487a730b1e6fd8cfb9265f2b1af8e1c (diff) |
backport tentative AU GUI fix from 3.0
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@12036 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/au_pluginui.mm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk2_ardour/au_pluginui.mm b/gtk2_ardour/au_pluginui.mm index 3cacb400fc..9f9a59b233 100644 --- a/gtk2_ardour/au_pluginui.mm +++ b/gtk2_ardour/au_pluginui.mm @@ -390,7 +390,11 @@ AUPluginUI::create_cocoa_view () // watch for size changes of the view [[NSNotificationCenter defaultCenter] addObserver:_notify - selector:@selector(auViewResized:) name:NSWindowDidResizeNotification + selector:@selector(auViewResized:) name:NSViewBoundsDidChangeNotification + object:au_view]; + + [[NSNotificationCenter defaultCenter] addObserver:_notify + selector:@selector(auViewResized:) name:NSViewFrameDidChangeNotification object:au_view]; // Get the size of the new AU View's frame @@ -408,6 +412,9 @@ void AUPluginUI::cocoa_view_resized () { NSRect packFrame = [au_view frame]; + prefwidth = packFrame.size.width; + prefheight = packFrame.size.height; + low_box.set_size_request (prefwidth, prefheight); } int |