---
 gtkboard.c |  4 ++++
 gtkboard.h | 11 ++++++++++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/gtkboard.c b/gtkboard.c
index 6b5e1fbe..a2ef5afe 100644
--- a/gtkboard.c
+++ b/gtkboard.c
@@ -71,7 +71,11 @@ int fGUIGrayEdit = TRUE;
 unsigned int nGUIAnimSpeed = 4;
 int animate_player, *animate_move_list, animation_finished = TRUE;
 
+#if GTK_CHECK_VERSION(3,0,0)
+static GtkBoxClass *parent_class = NULL;
+#else
 static GtkVBoxClass *parent_class = NULL;
+#endif
 
 typedef struct {
     unsigned char *TTachDice[2], *TTachPip[2], *TTachGrayDice[1], 
*TTachGrayPip[1];
diff --git a/gtkboard.h b/gtkboard.h
index 84060d72..79652103 100644
--- a/gtkboard.h
+++ b/gtkboard.h
@@ -39,7 +39,11 @@
 #define BOARD_GET_CLASS(obj)           (G_TYPE_INSTANCE_GET_CLASS((obj), 
TYPE_BOARD, BoardClass))
 
 typedef struct {
+#if GTK_CHECK_VERSION(3,0,0)
+    GtkBoxClass parent_class;
+#else
     GtkVBoxClass parent_class;
+#endif
 } BoardClass;
 
 typedef enum {
@@ -105,7 +109,12 @@ typedef struct {
 } BoardData;
 
 typedef struct {
-    GtkVBox vboxxx;
+#if GTK_CHECK_VERSION(3,0,0)
+    GtkBox parent_instance;
+#else
+    GtkVBox parent_instance;
+#endif
+
     /* private data */
     BoardData *board_data;
 } Board;
-- 
2.43.0


Reply via email to