diff src/graphics.h.in @ 9972:d32a6cc0193b

unshare dynamic properties
author John W. Eaton <jwe@octave.org>
date Fri, 11 Dec 2009 21:42:02 -0500
parents 29f4f8c9b3f1
children 33ba83a06a42
line wrap: on
line diff
--- a/src/graphics.h.in	Fri Dec 11 20:59:27 2009 -0500
+++ b/src/graphics.h.in	Fri Dec 11 21:42:02 2009 -0500
@@ -1642,13 +1642,7 @@
       all_props[name] = p;
     }
 
-  virtual void set (const caseless_str&, const octave_value&)
-  {
-    panic_impossible ();
-  }
-
-  void set (const caseless_str& pname, const std::string& cname,
-	    const octave_value& val);
+  virtual void set (const caseless_str&, const octave_value&);
 
   virtual octave_value get (const caseless_str& pname) const;
 
@@ -1744,16 +1738,14 @@
     return ! handlevisibility.is ("off");
   }
 
-  static std::map<std::string, std::set<std::string> > all_dynamic_properties;
- 
-  static std::set<std::string> dynamic_property_names (const std::string& cname);
-
-  static bool has_dynamic_property (const std::string& pname,
-				    const std::string& cname);
+  std::set<std::string> dynamic_property_names (void) const;
+
+  bool has_dynamic_property (const std::string& pname);
 
 protected:
-  void set_dynamic (const caseless_str& pname, const std::string& cname,
-		    const octave_value& val);
+  std::set<std::string> dynamic_properties;
+ 
+  void set_dynamic (const caseless_str& pname, const octave_value& val);
 
   octave_value get_dynamic (const caseless_str& pname) const;