X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/034be8882cc091cf8ca1ccdf307190ac73adfe54..16bcc879d96712f9acf4bcc1236096251a1b7586:/src/gtk/win_gtk.c?ds=sidebyside diff --git a/src/gtk/win_gtk.c b/src/gtk/win_gtk.c index 31b638fb6f..c199d05b9b 100644 --- a/src/gtk/win_gtk.c +++ b/src/gtk/win_gtk.c @@ -413,10 +413,14 @@ gtk_myfixed_size_allocate (GtkWidget *widget, myfixed = GTK_MYFIXED (widget); +#if (GTK_MINOR_VERSION > 0) if (myfixed->shadow_type == GTK_SHADOW_NONE) border = 0; else border = 2; +#else + border = 0; +#endif widget->allocation = *allocation; if (GTK_WIDGET_REALIZED (widget)) @@ -424,10 +428,11 @@ gtk_myfixed_size_allocate (GtkWidget *widget, gdk_window_move_resize( widget->window, allocation->x+border, allocation->y+border, #if (GTK_MINOR_VERSION > 0) - allocation->width-border*2, allocation->height-border*2 ); + allocation->width-border*2, allocation->height-border*2 #else - 32000, 32000 ); + 32000, 32000 #endif + ); } children = myfixed->children;