[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44242] Adding a listener to the "children" pr
From: |
Ben Abbott |
Subject: |
[Octave-bug-tracker] [bug #44242] Adding a listener to the "children" property has no effect |
Date: |
Sat, 14 Feb 2015 16:45:43 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.3.18 (KHTML, like Gecko) Version/8.0.3 Safari/600.3.18 |
Follow-up Comment #7, bug #44242 (project octave):
I'm not exactly trustworthy when it comes to reading c++, but it looks to me
as if the listeners are not called when the children are modified from the c++
side, which is what happens when a new object is added to a parent.
To check I tried the modified script below.
1;
function my_handler (h, dummy)
fprintf ("my_handler called\n");
endfunction
figure (1)
clf ()
hax = axes ();
plot (rand (3))
hold all
fcn = @my_handler;
prop = "children";
addlistener (hax, prop, fcn)
plot (rand (3))
h = get (gca (), prop);
set (gca (), prop, flipud (h))
Running this script does trigger the listener.
Is it possible that listeners are only triggered when the associated property
is modified from an m-file, or command line?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?44242>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #44242] Adding a listener to the "children" property has no effect, Ben Abbott, 2015/02/13
- [Octave-bug-tracker] [bug #44242] Adding a listener to the "children" property has no effect, Rik, 2015/02/13
- [Octave-bug-tracker] [bug #44242] Adding a listener to the "children" property has no effect, Ben Abbott, 2015/02/13
- [Octave-bug-tracker] [bug #44242] Adding a listener to the "children" property has no effect, Ben Abbott, 2015/02/13
- [Octave-bug-tracker] [bug #44242] Adding a listener to the "children" property has no effect, Rik, 2015/02/13
- [Octave-bug-tracker] [bug #44242] Adding a listener to the "children" property has no effect, Ben Abbott, 2015/02/13
- [Octave-bug-tracker] [bug #44242] Adding a listener to the "children" property has no effect, Pantxo Diribarne, 2015/02/14
- [Octave-bug-tracker] [bug #44242] Adding a listener to the "children" property has no effect,
Ben Abbott <=
- [Octave-bug-tracker] [bug #44242] Adding a listener to the "children" property has no effect, Pantxo Diribarne, 2015/02/15
- [Octave-bug-tracker] [bug #44242] Adding a listener to the "children" property has no effect, Pantxo Diribarne, 2015/02/17
- [Octave-bug-tracker] [bug #44242] Adding a listener to the "children" property has no effect, Ben Abbott, 2015/02/17
- [Octave-bug-tracker] [bug #44242] Adding a listener to the "children" property has no effect, Pantxo Diribarne, 2015/02/18
- [Octave-bug-tracker] [bug #44242] Adding a listener to the "children" property has no effect, Rik, 2015/02/18
- [Octave-bug-tracker] [bug #44242] Adding a listener to the "children" property has no effect, Pantxo Diribarne, 2015/02/18