Fix GTK warning.
authorCarl Hetherington <carl@carlh.net>
Thu, 13 Sep 2007 14:48:00 +0000 (14:48 +0000)
committerCarl Hetherington <carl@carlh.net>
Thu, 13 Sep 2007 14:48:00 +0000 (14:48 +0000)
git-svn-id: svn://localhost/ardour2/trunk@2464 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/route_time_axis.cc

index 9fe224b8141dabc5943e93a5e15eb3c1b0c70536..9fc1fa924b2384b495a9b2dc125002e3013ab049 100644 (file)
@@ -441,7 +441,7 @@ RouteTimeAxisView::build_automation_action_menu ()
        automation_items.push_back (MenuElem (_("Hide all automation"),
                                              mem_fun(*this, &RouteTimeAxisView::hide_all_automation)));
 
-       if (subplugin_menu.get_parent())
+       if (subplugin_menu.get_attach_widget())
                subplugin_menu.detach();
 
        automation_items.push_back (MenuElem (_("Plugins"), subplugin_menu));