-PatchGUI *KeyframePopupShow::get_patchgui(Track *track)
-{
- PatchGUI *patchgui = 0;
- TimelinePane **panes = mwindow->gui->pane;
- for( int i=0; i<TOTAL_PANES && !patchgui; ++i ) {
- if( !panes[i] ) continue;
- PatchBay *patchbay = panes[i]->patchbay;
- if( !patchbay ) continue;
- for( int j=0; j<patchbay->patches.total && !patchgui; ++j ) {
- if( patchbay->patches.values[j]->track == track )
- patchgui = patchbay->patches.values[j];
- }
- }
- return patchgui;
-}
-