octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: persistent listeners


From: Konstantinos Poulios
Subject: Re: persistent listeners
Date: Thu, 10 Mar 2011 20:34:07 +0100

On Wed, Mar 9, 2011 at 12:16 PM, Konstantinos Poulios
<address@hidden> wrote:
> In the new implementation of subplot we have the problem that the
> listeners that we use for the synchronization of subplots are deleted
> once something is plotted on a subplot.
>
> The attached patches implement persistent listeners, i.e.:
>
> 1. listeners added with:
> addlistener (handle, propertyname, cbfunction, "persistent")
> will not be removed by the c++ method "remove_all_listeners", nor by a
> call to delete_listener() with empty arguments list.
>
> 2. however, explicitly removing a persistent listener from the frontend with:
> dellistener (handle, propertyname, cbfunction)
> should still work.
>
> Please take a look at the patches so that I can push them if it is ok,
> so that we can make some progress with the subplot fixes.
>
> Kostas
>

I have just pushed a modified/fixed version of these patches. Actually
with a bit modified policy than the one described in my previous mail:

1. One can add a persistent listener with
addlistener (handle, propertyname, cbfunction, "persistent")

2. One can delete all persistent listeners on a property with
dellistener (handle, propertyname, "persistent")

This change will allow us to fix the known issues with subplot.

Regards

Kostas


reply via email to

[Prev in Thread] Current Thread [Next in Thread]