[gnome-games] aisleriot: Fix AisleriotBoard definition
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-games] aisleriot: Fix AisleriotBoard definition
- Date: Thu, 13 Aug 2009 19:02:13 +0000 (UTC)
commit 302c443df5dc874d76887cb41b2d429ae6a310bf
Author: Christian Persch <chpe gnome org>
Date: Thu Aug 13 21:01:44 2009 +0200
aisleriot: Fix AisleriotBoard definition
Use the right parent instance/class!
aisleriot/board.c | 1 -
aisleriot/board.h | 12 ++++++++++++
2 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/aisleriot/board.c b/aisleriot/board.c
index 8df4a25..02600ed 100644
--- a/aisleriot/board.c
+++ b/aisleriot/board.c
@@ -27,7 +27,6 @@
#include <gdk/gdkkeysyms.h>
#include <clutter/clutter.h>
-#include <clutter-gtk/clutter-gtk.h>
#include <libgames-support/games-card-textures-cache.h>
#include <libgames-support/games-files.h>
diff --git a/aisleriot/board.h b/aisleriot/board.h
index 21691b3..bab8997 100644
--- a/aisleriot/board.h
+++ b/aisleriot/board.h
@@ -21,6 +21,10 @@
#include <gtk/gtk.h>
+#ifdef HAVE_CLUTTER
+#include <clutter-gtk/clutter-gtk.h>
+#endif
+
#include <libgames-support/games-card-theme.h>
#include "game.h"
@@ -39,14 +43,22 @@ typedef struct _AisleriotBoardPrivate AisleriotBoardPrivate;
typedef struct _AisleriotBoardClass AisleriotBoardClass;
struct _AisleriotBoard {
+#ifdef HAVE_CLUTTER
+ GtkClutterEmbed parent_instance;
+#else
GtkDrawingArea parent_instance;
+#endif
/*< private >*/
AisleriotBoardPrivate *priv;
};
struct _AisleriotBoardClass {
+#ifdef HAVE_CLUTTER
+ GtkClutterEmbedClass parent_class;
+#else
GtkDrawingAreaClass parent_class;
+#endif
/* keybinding signals */
gboolean (* move_cursor) (AisleriotBoard *board,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]