gnomemm r1639 - in geglmm/trunk: . gegl/src
- From: hub svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r1639 - in geglmm/trunk: . gegl/src
- Date: Sat, 26 Jul 2008 02:55:58 +0000 (UTC)
Author: hub
Date: Sat Jul 26 02:55:58 2008
New Revision: 1639
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1639&view=rev
Log:
	* gegl/src/buffer.hg: 
	* gegl/src/buffer.ccg: Fix buffer constructor to not
	set properties it does not handle.
Modified:
   geglmm/trunk/ChangeLog
   geglmm/trunk/NEWS
   geglmm/trunk/gegl/src/buffer.ccg
   geglmm/trunk/gegl/src/buffer.hg
Modified: geglmm/trunk/NEWS
==============================================================================
--- geglmm/trunk/NEWS	(original)
+++ geglmm/trunk/NEWS	Sat Jul 26 02:55:58 2008
@@ -1,3 +1,6 @@
+ - BUG: Gegl::Buffer::Buffer() didn't work very well when
+   setting the extent.
+
 0.0.17
 
  - NEW: added tools/enum.pl for convenience
Modified: geglmm/trunk/gegl/src/buffer.ccg
==============================================================================
--- geglmm/trunk/gegl/src/buffer.ccg	(original)
+++ geglmm/trunk/gegl/src/buffer.ccg	Sat Jul 26 02:55:58 2008
@@ -20,6 +20,20 @@
 
 namespace Gegl {
 
+Buffer::Buffer(const Rectangle & extent, const Babl * format)
+:
+  // Mark this class as non-derived to allow C++ vfuncs to be skipped.
+  Glib::ObjectBase(0),
+  Glib::Object(Glib::ConstructParams(buffer_class_.init(),
+                                     "x", const_cast<const GeglRectangle*>(extent.gobj())->x,
+                                     "y", const_cast<const GeglRectangle*>(extent.gobj())->y,
+                                     "width", const_cast<const GeglRectangle*>(extent.gobj())->width,
+                                     "height", const_cast<const GeglRectangle*>(extent.gobj())->height,
+                                     "format", format, static_cast<char*>(0)))
+{
+
+}
+
 void Buffer::save(const Glib::ustring &p1) const
 {
   gegl_buffer_save(const_cast<GeglBuffer*>(gobj()), p1.c_str(), NULL);
Modified: geglmm/trunk/gegl/src/buffer.hg
==============================================================================
--- geglmm/trunk/gegl/src/buffer.hg	(original)
+++ geglmm/trunk/gegl/src/buffer.hg	Sat Jul 26 02:55:58 2008
@@ -35,7 +35,8 @@
 {
 	_CLASS_GOBJECT(Buffer, GeglBuffer, GEGL_BUFFER, Glib::Object, GObject)
 protected:
-	_WRAP_CTOR(Buffer(const Rectangle & extent, const Babl *format), gegl_buffer_new) //TODO: Add an overload if format can be NULL, and use a const & for this one.
+    Buffer(const Rectangle & extent, const Babl * format);
+    //	_WRAP_CTOR(Buffer(const Rectangle & extent, const Babl *format), gegl_buffer_new) //TODO: Add an overload if format can be NULL, and use a const & for this one.
 
 public:
 	_WRAP_CREATE(const Rectangle & extent, const Babl *format) //TODO: Add an overload if format can be NULL, and use a const & for this one.
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]