On 2010-05-30 12:04-0400 Hazen Babcock wrote:

> Ok, fixed in v11036. It should now behave like the qtwidget driver, which 
> does not actually call plexit(). The stream is not really closed, but nothing 
> can be plotted anymore so it at least appears closed. In the case of the 
> examples, what happens is that once you click the close box all the 
> subsequent plotting commands become nop's.

Hi Hazen:

That's great you discovered qtwidget does not use plexit and implemented a
solution without plexit for the xcairo case as well.  I like your solution
of using a flag to turn all operations into no-ops when the window has been
closed. I confirm that solution smoothly exits from examples/c/x02c when you
close the window regardless of page.  Thanks!

Now a question for Andrew.  If you try either -dev qtwidget or -dev xcairo
from within octave and close the window are you now happy with the results?

Assuming the answer is yes, then we have both C (cairo.c) and C++ (qt.cpp)
templates for the proper way to do window closing without plexit clobbering
the calling environment, and we should propagate those solutions to -dev
xwin, -dev tk, and -dev wxwidgets.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------

_______________________________________________
Plplot-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to