diff --git a/ChangeLog b/ChangeLog index d3b29bbfd1..1912f6cbc1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Mon Jan 24 22:28:00 CET 2000 Seth Burgess + + * app/gdisplay_ops.c: Added a minimum width for shrink wrap; + without it, it would map improperly and create a mess for small + images. Its not a very shrunk wrap since the statusbar is so + large, but at least it works. I welcome other suggestions on + better ways to fix this. + Mon Jan 24 23:28:08 CET 2000 Sven Neumann * app/gimpdnd.c: I think this time I got it right. Still the same diff --git a/app/display/gimpdisplay-ops.c b/app/display/gimpdisplay-ops.c index 885f562f67..c4ca9102cf 100644 --- a/app/display/gimpdisplay-ops.c +++ b/app/display/gimpdisplay-ops.c @@ -171,6 +171,10 @@ gdisplay_shrink_wrap (GDisplay *gdisp) width = ((width + border_x) < s_width) ? width : max_auto_width; height = ((height + border_y) < s_height) ? height : max_auto_height; + if (width < gdisp->statusarea->requisition.width) + { + width = gdisp->statusarea->requisition.width; + } /* I don't know why, but if I don't hide the window, it doesn't work */ gtk_widget_hide(gdisp->shell); gtk_drawing_area_size(GTK_DRAWING_AREA(gdisp->canvas), @@ -207,6 +211,11 @@ gdisplay_shrink_wrap (GDisplay *gdisp) max_auto_width = MINIMUM (max_auto_width, width); max_auto_height = MINIMUM (max_auto_height, height); + if (width < gdisp->statusarea->requisition.width) + { + width = gdisp->statusarea->requisition.width; + } + /* I don't know why, but if I don't hide the window, it doesn't work */ gtk_widget_hide(gdisp->shell); gtk_drawing_area_size(GTK_DRAWING_AREA(gdisp->canvas), diff --git a/app/gdisplay_ops.c b/app/gdisplay_ops.c index 885f562f67..c4ca9102cf 100644 --- a/app/gdisplay_ops.c +++ b/app/gdisplay_ops.c @@ -171,6 +171,10 @@ gdisplay_shrink_wrap (GDisplay *gdisp) width = ((width + border_x) < s_width) ? width : max_auto_width; height = ((height + border_y) < s_height) ? height : max_auto_height; + if (width < gdisp->statusarea->requisition.width) + { + width = gdisp->statusarea->requisition.width; + } /* I don't know why, but if I don't hide the window, it doesn't work */ gtk_widget_hide(gdisp->shell); gtk_drawing_area_size(GTK_DRAWING_AREA(gdisp->canvas), @@ -207,6 +211,11 @@ gdisplay_shrink_wrap (GDisplay *gdisp) max_auto_width = MINIMUM (max_auto_width, width); max_auto_height = MINIMUM (max_auto_height, height); + if (width < gdisp->statusarea->requisition.width) + { + width = gdisp->statusarea->requisition.width; + } + /* I don't know why, but if I don't hide the window, it doesn't work */ gtk_widget_hide(gdisp->shell); gtk_drawing_area_size(GTK_DRAWING_AREA(gdisp->canvas),