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



Author: hub
Date: Tue May 20 01:53:31 2008
New Revision: 1511
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1511&view=rev

Log:
	* libgegl/src/curve.hg, libgegl/src/buffer.hg, 
	libgegl/src/color.hg: Instantiate proper constructors instead.


Modified:
   geglmm/trunk/ChangeLog
   geglmm/trunk/libgegl/src/buffer.hg
   geglmm/trunk/libgegl/src/color.hg
   geglmm/trunk/libgegl/src/curve.hg

Modified: geglmm/trunk/libgegl/src/buffer.hg
==============================================================================
--- geglmm/trunk/libgegl/src/buffer.hg	(original)
+++ geglmm/trunk/libgegl/src/buffer.hg	Tue May 20 01:53:31 2008
@@ -35,7 +35,7 @@
 {
 	_CLASS_GOBJECT(Buffer, GeglBuffer, GEGL_BUFFER, Glib::Object, GObject)
 public:
-	_WRAP_METHOD(static Glib::RefPtr<Buffer> create(const Rectangle & extent, const Babl *format), gegl_buffer_new)
+	_WRAP_CTOR(Buffer(const Rectangle & extent, const Babl *format), gegl_buffer_new)
 	_WRAP_METHOD(Glib::RefPtr<Buffer> create_sub_buffer(const Rectangle & extent), gegl_buffer_create_sub_buffer)
 	_WRAP_METHOD(void destroy(), gegl_buffer_destroy)
 	_WRAP_METHOD(const Rectangle & get_extent(), gegl_buffer_get_extent)

Modified: geglmm/trunk/libgegl/src/color.hg
==============================================================================
--- geglmm/trunk/libgegl/src/color.hg	(original)
+++ geglmm/trunk/libgegl/src/color.hg	Tue May 20 01:53:31 2008
@@ -30,7 +30,7 @@
 {
 	_CLASS_GOBJECT(Color, GeglColor, GEGL_COLOR, Glib::Object, GObject)
 public:
-	_WRAP_METHOD(static Glib::RefPtr<Color> create(const Glib::ustring & s), gegl_color_new)
+	_WRAP_CTOR(Color(const Glib::ustring & s), gegl_color_new)
 	_WRAP_METHOD(void get_rgba(float & r, float & g, float & b, float & a), gegl_color_get_rgba)
 	_WRAP_METHOD(void set_rgba(float r, float g, float b, float a), gegl_color_set_rgba)
 

Modified: geglmm/trunk/libgegl/src/curve.hg
==============================================================================
--- geglmm/trunk/libgegl/src/curve.hg	(original)
+++ geglmm/trunk/libgegl/src/curve.hg	Tue May 20 01:53:31 2008
@@ -29,7 +29,7 @@
 {
 	_CLASS_GOBJECT(Curve, GeglCurve, GEGL_CURVE, Glib::Object, GObject)
 public:
-	_WRAP_METHOD(static Glib::RefPtr<Curve> create(double y_min, double y_max), gegl_curve_new)
+	_WRAP_CTOR(Curve(double y_min, double y_max), gegl_curve_new)
 	_WRAP_METHOD(static Glib::RefPtr<Curve> default_curve(), gegl_curve_default_curve)
 	_WRAP_METHOD(void get_y_bounds(double & min_y, double & max_y), gegl_curve_get_y_bounds)
 	_WRAP_METHOD(void get_bounds(double & min_x, double & max_x, double & min_y, double & max_y), gegl_curve_get_bounds)



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