[goocanvasmm/goocanvasmm-1.0] Fix the build with the latest cairomm.



commit 30edcb72c89c0f97d11d9f88c6da82f6ae78d4bf
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Sep 2 16:40:41 2010 +0200

    Fix the build with the latest cairomm.
    
    * goocanvas/src/enums.[hg|ccg]: Remove the (unused) Value<Cairo::Pattern>
      specialization. Pattern should always (and is always) used via RefPtr
      anyway.

 ChangeLog               |   14 +++++++++++---
 goocanvas/src/enums.ccg |    2 --
 goocanvas/src/enums.hg  |   10 ----------
 3 files changed, 11 insertions(+), 15 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 6531b52..8577708 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,13 +1,21 @@
+2010-09-02  Murray Cumming  <murrayc murrayc com>
+
+	Fix the build with the latest cairomm.
+
+	* goocanvas/src/enums.[hg|ccg]: Remove the (unused) Value<Cairo::Pattern>
+  specialization. Pattern should always (and is always) used via RefPtr
+  anyway.
+
 0.15.3:
 
 2010-05-04  Murray Cumming  <murrayc murrayc com>
 
 	Documentation improvements.
-	
-	* goocanvas/goocanvasmm.h: Slight improvements to main page text, adding a 
+
+	* goocanvas/goocanvasmm.h: Slight improvements to main page text, adding a
 	link to the Canvas widget class.
 	* goocanvas/src/canvas.hg: Added a class description.
-	* doc/reference/Doxyfile.in: Make more like gtkmm's. In particular, show 
+	* doc/reference/Doxyfile.in: Make more like gtkmm's. In particular, show
 	undocumented classes (they should be documented though).
 
 2010-04-23  David King  <davidk openismus com>
diff --git a/goocanvas/src/enums.ccg b/goocanvas/src/enums.ccg
index f765f3e..2cb6945 100644
--- a/goocanvas/src/enums.ccg
+++ b/goocanvas/src/enums.ccg
@@ -25,7 +25,6 @@ namespace Glib
 
 // We can't simply derive from Glib::ValueBoxed<> because these have no
 // gobj() function to return the underlying boxed C object.
-GType Value<Cairo::Pattern>::value_type() { return goo_cairo_pattern_get_type(); }
 GType Value<Cairo::Matrix*>::value_type() { return goo_cairo_matrix_get_type(); }
 
 // Normally, _WRAP_ENUM does generate this code for us, but we can't use
@@ -41,4 +40,3 @@ GType Value<Cairo::LineJoin>::value_type() { return goo_cairo_line_join_get_type
 GType Value<Cairo::HintMetrics>::value_type() { return goo_cairo_hint_metrics_get_type(); }
 
 }
-
diff --git a/goocanvas/src/enums.hg b/goocanvas/src/enums.hg
index e8205a5..9299d0c 100644
--- a/goocanvas/src/enums.hg
+++ b/goocanvas/src/enums.hg
@@ -40,16 +40,6 @@ namespace Glib
 // GTypes goocanvas defines for them in goocanvasutil.h
 
 template<>
-class Value<Cairo::Pattern> : public Glib::ValueBase_Boxed
-{
-public:
-  static GType value_type() G_GNUC_CONST;
-
-  void set(const Cairo::Pattern& data) { set_boxed(data.cobj()); }
-  Cairo::Pattern get() const { return Cairo::Pattern(static_cast<cairo_pattern_t*>(get_boxed())); }
-};
-
-template<>
 class Value<Cairo::Matrix*> : public Glib::ValueBase_Boxed
 {
 public:



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