X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fb1585ae85bc09432ae4c1afd805fb4aebf6e0c8..6b037754f53cc35e177bf6787bace26c7cecc6e1:/src/gtk/win_gtk.c diff --git a/src/gtk/win_gtk.c b/src/gtk/win_gtk.c index 2e1a9809f7..53e308a1c9 100644 --- a/src/gtk/win_gtk.c +++ b/src/gtk/win_gtk.c @@ -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; }