summaryrefslogtreecommitdiff
path: root/gtk2_ardour/au_pluginui.mm
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-04-19 20:11:15 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-04-19 20:11:15 +0000
commit5b6721f657e9b5f64e80cedb775bfe22e2702f3a (patch)
tree8b5a06013654e2c291357653652fe323c721150c /gtk2_ardour/au_pluginui.mm
parentbd4e498a1bc0565d011e03536b65496f7b1b7582 (diff)
potential fix for AU GUIs resizing (not yet tested)
git-svn-id: svn://localhost/ardour2/branches/3.0@12035 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/au_pluginui.mm')
-rw-r--r--gtk2_ardour/au_pluginui.mm10
1 files changed, 9 insertions, 1 deletions
diff --git a/gtk2_ardour/au_pluginui.mm b/gtk2_ardour/au_pluginui.mm
index d1ba3d4d7f..43378aed3e 100644
--- a/gtk2_ardour/au_pluginui.mm
+++ b/gtk2_ardour/au_pluginui.mm
@@ -392,7 +392,12 @@ 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
@@ -410,6 +415,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