X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/01111366c9b4ea40eee7f4b13ddfe6f6b9f886db..3bc755fc89fbb7ef10442c6b5216f4c77abf4bd8:/src/gtk1/win_gtk.c diff --git a/src/gtk1/win_gtk.c b/src/gtk1/win_gtk.c index c4e8c42101..53e308a1c9 100644 --- a/src/gtk1/win_gtk.c +++ b/src/gtk1/win_gtk.c @@ -1,8 +1,8 @@ /* /////////////////////////////////////////////////////////////////////////// -// 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 /////////////////////////////////////////////////////////////////////////// */ @@ -78,7 +78,7 @@ gtk_myfixed_class_init (GtkMyFixedClass *klass) 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; @@ -104,6 +104,10 @@ gtk_myfixed_init (GtkMyFixed *myfixed) 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; } @@ -169,6 +173,8 @@ gtk_myfixed_move (GtkMyFixed *myfixed, if (child->widget == widget) { + if ((child->x == x) && (child->y == y)) return; + child->x = x; child->y = y;