model_server/gala/src/view.cxx
/* This method searchs for the target view.  It first checks all of its
   neighbors to see if they are the target view, and then itself. */
This method searchs for the target view.  It first checks all of its
neighbors to see if they are the target view, and then itself.
This method searchs for the target view . It first checks all of its neighbors to see if they are the target view and then itself .
View* View::find_target_view()
{
    for (View* v = this; v; v=v->RightView) {
        if (v->targ) return v;
        if (v->ChildView) {
            View* vv = (v->ChildView)->find_target_view();
            if (vv) return vv;
        }
    }
    return NULL;
}
View * View :: find_target_view ( ) { for ( View * v = this ; v ; v = v -> RightView ) { if ( v -> targ ) return v ; if ( v -> ChildView ) { View * vv = ( v -> ChildView ) -> find_target_view ( ) ; if ( vv ) return vv ; } } return NULL ; }
This method searchs for the target view.
This method searchs for the target view .