connect to size allocations of the navigation preview's parent container
2002-05-11 Michael Natterer <mitch@gimp.org> * app/display/gimpnavigationview.c: connect to size allocations of the navigation preview's parent container and resize it so it takes all available space. * app/widgets/gimppreview.[ch]: replaced magic values by public #defines of GIMP_PREVIEW_MAX_SIZE and GIMP_PREVIEW_MAX_POPUP_SIZE. Increased the maximum preview size to 1024. Don't call the virtual get_size() function if preview->viewable is NULL but call gimp_preview_real_get_size() directly. * app/widgets/gimpbufferpreview.c * app/widgets/gimpcomponentlistitem.c * app/widgets/gimpcontainermenu.c * app/widgets/gimpdrawablepreview.c * app/widgets/gimpimagepreview.c * app/widgets/gimplistitem.c * app/widgets/gimpmenuitem.c * app/widgets/gimpnavigationpreview.c: replaced magic values by the new costants.
This commit is contained in:

committed by
Michael Natterer

parent
5a024d973b
commit
384a2a851e
@ -218,8 +218,8 @@ gimp_image_preview_create_popup (GimpPreview *preview)
|
||||
gimp_preview_calc_size (preview,
|
||||
gimage->width,
|
||||
gimage->height,
|
||||
MIN (preview->width * 2, 256),
|
||||
MIN (preview->height * 2, 256),
|
||||
MIN (preview->width * 2, GIMP_PREVIEW_MAX_POPUP_SIZE),
|
||||
MIN (preview->height * 2, GIMP_PREVIEW_MAX_POPUP_SIZE),
|
||||
gimage->xresolution,
|
||||
gimage->yresolution,
|
||||
&popup_width,
|
||||
|
Reference in New Issue
Block a user