/* ///////////////////////////////////////////////////////////////////////////
-// Name: wx_gtk.h
+// Name: win_gtk.c
// Purpose: native GTK+ widget for wxWindows
// Author: Robert Roebling
-// Id: $id$
+// Id: $Id$
// Copyright: (c) 1998 Robert Roebling
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////// */
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;
GTK_WIDGET_UNSET_FLAGS (myfixed, GTK_NO_WINDOW);
GTK_WIDGET_SET_FLAGS (myfixed, GTK_BASIC);
+#if (GTK_MINOR_VERSION == 1)
+ gtk_container_set_resize_mode( GTK_CONTAINER(myfixed), GTK_RESIZE_PARENT );
+#endif
+
myfixed->children = NULL;
}
if (child->widget == widget)
{
+ if ((child->x == x) && (child->y == y)) return;
+
child->x = x;
child->y = y;