diff src/graphics.h.in @ 13324:1e12601d2697

make handles with their handlevisibility property set to "callback" visible in callback functions * graphics.cc (executing_callback): New file scope variable. (callback_property::execute): Protect executing_callback and set it to true when executing callback function. * graphics.cc (base_properties::is_handle_visible): Move here from graphics.h.in. Check executing_callback to decide whether handles that have their handlevisibility property set to "callback" should be visible.
author John W. Eaton <jwe@octave.org>
date Tue, 11 Oct 2011 22:02:39 -0400
parents de081abd32c6
children dd9b32af0a01
line wrap: on
line diff
--- a/src/graphics.h.in	Tue Oct 11 21:55:21 2011 -0400
+++ b/src/graphics.h.in	Tue Oct 11 22:02:39 2011 -0400
@@ -2382,10 +2382,7 @@
   virtual bool is_climinclude (void) const { return false; }
   virtual bool is_aliminclude (void) const { return false; }
 
-  bool is_handle_visible (void) const
-  {
-    return ! handlevisibility.is ("off");
-  }
+  bool is_handle_visible (void) const;
 
   std::set<std::string> dynamic_property_names (void) const;