- GtkObjectClass *object_class;
- GtkWidgetClass *widget_class;
- GtkContainerClass *container_class;
-
- object_class = (GtkObjectClass*) klass;
- widget_class = (GtkWidgetClass*) klass;
- container_class = (GtkContainerClass*) klass;
-
- parent_class = gtk_type_class (gtk_container_get_type ());
-
- widget_class->map = gtk_myfixed_map;
- widget_class->unmap = gtk_myfixed_unmap;
- widget_class->realize = gtk_myfixed_realize;
- widget_class->size_request = gtk_myfixed_size_request;
- widget_class->size_allocate = gtk_myfixed_size_allocate;
- widget_class->draw = gtk_myfixed_draw;
- widget_class->expose_event = gtk_myfixed_expose;
-
- container_class->add = gtk_myfixed_add;
- container_class->remove = gtk_myfixed_remove;
- container_class->foreach = gtk_myfixed_foreach;
+ GtkObjectClass *object_class;
+ GtkWidgetClass *widget_class;
+ GtkContainerClass *container_class;
+
+ object_class = (GtkObjectClass*) klass;
+ widget_class = (GtkWidgetClass*) klass;
+ container_class = (GtkContainerClass*) klass;
+
+#if (GTK_MINOR_VERSION > 0)
+ parent_class = gtk_type_class (GTK_TYPE_CONTAINER);
+#else
+ parent_class = gtk_type_class (gtk_container_get_type ());
+#endif
+
+ widget_class->map = gtk_myfixed_map;
+#if (GTK_MINOR_VERSION == 0)
+ widget_class->unmap = gtk_myfixed_unmap;
+#endif
+ widget_class->realize = gtk_myfixed_realize;
+ widget_class->size_request = gtk_myfixed_size_request;
+ widget_class->size_allocate = gtk_myfixed_size_allocate;
+ widget_class->draw = gtk_myfixed_draw;
+ widget_class->expose_event = gtk_myfixed_expose;
+
+ container_class->add = gtk_myfixed_add;
+ container_class->remove = gtk_myfixed_remove;
+#if (GTK_MINOR_VERSION > 0)
+ container_class->forall = gtk_myfixed_foreach;
+#else
+ container_class->foreach = gtk_myfixed_foreach;
+#endif
+
+#if (GTK_MINOR_VERSION > 0)
+ container_class->child_type = gtk_myfixed_child_type;
+#endif
+
+#if (GTK_MINOR_VERSION > 0)
+ klass->set_scroll_adjustments = gtk_myfixed_scroll_set_adjustments;
+
+ widget_class->set_scroll_adjustments_signal =
+ gtk_signal_new ("set_scroll_adjustments",
+ GTK_RUN_LAST,
+ object_class->type,
+ GTK_SIGNAL_OFFSET (GtkMyFixedClass, set_scroll_adjustments),
+ gtk_marshal_NONE__POINTER_POINTER,
+ GTK_TYPE_NONE, 2, GTK_TYPE_ADJUSTMENT, GTK_TYPE_ADJUSTMENT);
+#endif