[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
- persistent listeners, Konstantinos Poulios, 2011/03/09
- Re: persistent listeners,
Konstantinos Poulios <=
- Re: EXC_BAD_ACCESS [was: persistent listeners], bpabbott, 2011/03/10
- Re: EXC_BAD_ACCESS [was: persistent listeners], logari81, 2011/03/12
- Re: EXC_BAD_ACCESS [was: persistent listeners], Ben Abbott, 2011/03/12
- Re: EXC_BAD_ACCESS [was: persistent listeners], Ben Abbott, 2011/03/12
- Re: EXC_BAD_ACCESS [was: persistent listeners], Ben Abbott, 2011/03/12
- Re: EXC_BAD_ACCESS [was: persistent listeners], logari81, 2011/03/12
- Re: EXC_BAD_ACCESS [was: persistent listeners], Michael D Godfrey, 2011/03/12
- Re: EXC_BAD_ACCESS [was: persistent listeners], Ben Abbott, 2011/03/12
- Re: EXC_BAD_ACCESS [was: persistent listeners], logari81, 2011/03/12
- Re: EXC_BAD_ACCESS [was: persistent listeners], Søren Hauberg, 2011/03/13