H Christian,

I've done a review of your changes but don't feel it's apprpriate to add a
method as specific as removeAllCallbacks() as it adds interface with little
extra functionality.  A better method to introduce would be getCallbacks()
which would allow one to individually remove/add callbacks as well as clear
the list if one so desired.  I have checked the getCallbacks() method to
svn/trunk and the OSG-3.2 branch.

Robert.

On 24 July 2013 12:43, Christian Ruzicka <[email protected]> wrote:

> Hi,
>
> an osgWidget can have multiple callbacks attached to it and all this is
> stored in a std::list. So adding a new callback doesn’t remove the previous
> one. Attached is a small change to be able to remove all attached callbacks.
>
> This topic has already been discussed here:
> http://forum.openscenegraph.org/viewtopic.php?p=42135#42135
>
> The change was tested with OSG 3.1.9
>
> Thank you!
>
> Cheers,
> Christian
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=55410#55410
>
>
>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
>
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to