[gtkmm] Cursor: Do not try to derive a GType.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Cursor: Do not try to derive a GType.
- Date: Wed, 22 Dec 2010 11:02:05 +0000 (UTC)
commit bfbd4b11877006753eef7d43b922ef5628be36c1
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Dec 22 12:01:53 2010 +0100
Cursor: Do not try to derive a GType.
* gdk/src/cursor.hg: Use the (undocumented?) _DO_NOT_DERIVE_GTYPE macro
to avoid deriving a GType, because we get this warning when we try:
cannot derive `gtkmm__GdkCursor' from non-fundamental parent type `GdkCursor'
We do not need to anyway, because there are no properties or signals.
ChangeLog | 9 +++++++++
gdk/src/cursor.hg | 1 +
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7433ec6..15c2ced 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2010-12-22 Murray Cumming <murrayc murrayc com>
+ Cursor: Do not try to derive a GType.
+
+ * gdk/src/cursor.hg: Use the (undocumented?) _DO_NOT_DERIVE_GTYPE macro
+ to avoid deriving a GType, because we get this warning when we try:
+ cannot derive `gtkmm__GdkCursor' from non-fundamental parent type `GdkCursor'
+ We do not need to anyway, because there are no properties or signals.
+
+2010-12-22 Murray Cumming <murrayc murrayc com>
+
Fix the build with latest GTK+.
* gdk/src/gdk_methods.defs: Regenerated with h2defs.py.
diff --git a/gdk/src/cursor.hg b/gdk/src/cursor.hg
index a1fd54f..1f14ced 100644
--- a/gdk/src/cursor.hg
+++ b/gdk/src/cursor.hg
@@ -37,6 +37,7 @@ _WRAP_ENUM(CursorType, GdkCursorType)
class Cursor : public Glib::Object
{
_CLASS_GOBJECT(Cursor, GdkCursor, GDK_CURSOR, Glib::Object, GObject)
+ _DO_NOT_DERIVE_GTYPE //We use DO_NOT_DERIVE_GTYPE because glib does not allow us to derive from a non-fundamental (abstract) type, for some reason.
_IGNORE(gdk_cursor_ref, gdk_cursor_unref) //deprecated
public:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]