[goocanvasmm] Fix the build with the latest cairomm.



commit 7b130174e8d95e0dbc9e6c5a7ae0a8b7608d6837
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               |    8 ++++++++
 goocanvas/src/enums.ccg |    2 --
 goocanvas/src/enums.hg  |   10 ----------
 3 files changed, 8 insertions(+), 12 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index f0e3d34..6d1073d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+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.
+
 1.9.0:
 
 2010-06-13  Murray Cumming  <murrayc murrayc 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]