diff --git a/Geo/MElementCut.h b/Geo/MElementCut.h
index ee2b5fa7852c73d2f0694d1393b59720829e591a..9ad260525c8f909f871341acf0f0dcbf03a76a28 100644
--- a/Geo/MElementCut.h
+++ b/Geo/MElementCut.h
@@ -156,6 +156,8 @@ class MPolyhedron : public MElement {
   }
   virtual void writeMSH(FILE *fp, double version=1.0, bool binary=false, 
                         int num=0, int elementary=1, int physical=1);
+  virtual int getNumParts() const { return _parts.size(); }
+  virtual MElement *getPart(int i) const { _parts[i]; }
 };
 
 class MPolygon : public MElement {
@@ -269,6 +271,8 @@ class MPolygon : public MElement {
   }
   virtual void writeMSH(FILE *fp, double version=1.0, bool binary=false, 
                         int num=0, int elementary=1, int physical=1);
+  virtual int getNumParts() const { return _parts.size(); }
+  virtual MElement *getPart(int i) const { _parts[i]; }
 };
 
 class MTriangleBorder : public MTriangle {
diff --git a/Plugin/Plugin.cpp b/Plugin/Plugin.cpp
index 80dd6a72dc9751c66c86d12227394ce4c0a59624..ef77cc61ff2b856c4ee2d1ae501349a09e93ce69 100644
--- a/Plugin/Plugin.cpp
+++ b/Plugin/Plugin.cpp
@@ -12,7 +12,7 @@
 
 void (*GMSH_Plugin::draw)(void*) = 0;
 
-void GMSH_Plugin::setDrawFunction(void (*fct)(void *context))
+void GMSH_Plugin::setDrawFunction(void (*fct)(void *))
 {
 #if defined(HAVE_FLTK)
   draw = fct;
diff --git a/doc/VERSIONS.txt b/doc/VERSIONS.txt
index 191824ca78483622b53a1994ecda444aab5666cd..571c2096bbee9ac6a1652f03a51bef074dfce19c 100644
--- a/doc/VERSIONS.txt
+++ b/doc/VERSIONS.txt
@@ -1,10 +1,12 @@
-$Id: VERSIONS.txt,v 1.48 2009-08-14 08:25:37 geuzaine Exp $
+$Id: VERSIONS.txt,v 1.49 2009-08-20 08:52:42 geuzaine Exp $
 
 2.4.0 (?): switched build system to CMake; optionally copy transfinite
 mesh contraints during geometry transformations; bumped mesh version
 format to 2.1 (small change in the $PhysicalNames section, where the
 group dimension is now required); ported most plugins to the new
-post-processing API.
+post-processing API; switched from MathEval to MathEx and
+Flu_Tree_Browser to Fl_Tree; small bug fixes and improvements all over
+the place.
 
 2.3.1 (Mar 18, 2009): removed GSL dependency (Gmsh now simply uses
 Blas and Lapack); new per-window visibility; added support for