gnomemm r1522 - in geglmm/trunk: . libgegl/src



Author: hub
Date: Thu May 22 04:19:07 2008
New Revision: 1522
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1522&view=rev

Log:
	* libgegl/src/node.ccg: 
	* libgegl/src/node.hg:
	Set and get API set straight.


Modified:
   geglmm/trunk/ChangeLog
   geglmm/trunk/libgegl/src/node.ccg
   geglmm/trunk/libgegl/src/node.hg

Modified: geglmm/trunk/libgegl/src/node.ccg
==============================================================================
--- geglmm/trunk/libgegl/src/node.ccg	(original)
+++ geglmm/trunk/libgegl/src/node.ccg	Thu May 22 04:19:07 2008
@@ -48,5 +48,35 @@
 	}
 
 
+	// GEGL does not export these.
+	// http://bugzilla.gnome.org/show_bug.cgi?id=534288
+	extern "C" void
+	gegl_node_set_valist (GeglNode    *self,
+						  const gchar *first_property_name,
+						  va_list      var_args);
+	extern "C" void
+	gegl_node_get_valist (GeglNode    *self,
+						  const gchar *first_property_name,
+						  va_list      var_args);
+
+	void Node::set(const gchar * first_property_name, ...)
+	{
+		va_list var_args;
+
+		va_start (var_args, first_property_name);
+		gegl_node_set_valist(gobj(), first_property_name, var_args);
+		va_end (var_args);
+	}
+
+
+	void Node::get(const gchar * first_property_name, ...)
+	{
+		va_list var_args;
+
+		va_start (var_args, first_property_name);
+		gegl_node_get_valist(gobj(), first_property_name, var_args);
+		va_end (var_args);
+	}
+
 }
 

Modified: geglmm/trunk/libgegl/src/node.hg
==============================================================================
--- geglmm/trunk/libgegl/src/node.hg	(original)
+++ geglmm/trunk/libgegl/src/node.hg	Thu May 22 04:19:07 2008
@@ -103,6 +103,8 @@
 
 	_IGNORE(gegl_node_get_property)
 	_IGNORE(gegl_node_set_property)
+	void set(const gchar * first_property_name, ...);
+	void get(const gchar * first_property_name, ...);
 
 	_WRAP_METHOD(static Glib::RefPtr<Node> new_from_xml(const Glib::ustring & xmldata, const Glib::ustring & path_root), gegl_node_new_from_xml)
 	_WRAP_METHOD(static Glib::RefPtr<Node> new_from_file(const Glib::ustring & path), gegl_node_new_from_file)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]