[Gimp-developer] Change size and ratio of Gimp Preview

Torsten Neuer tneuer at inwise.de
Fri Apr 18 00:57:18 PDT 2008


Am Mittwoch, 16. April 2008 22:03:06 schrieb Nicolás_Serrano_Martí
nez_Santos:
> Thanks for the advice. I've tried using ZoomPreview and it adjust to
> the drawable ratio. If i create a rectangular drawable the widget
> will be rectangular, what i want (let's see if i can be clear) is to
> adjust the width and height of the preview widget. It's adjusted to
> the drawable ratio and the i don't managed to change it.

As far as I can see, the width and height of the widget can't be adjusted 
manually.  If that is what you want, I would take GimpZoomPreview as a 
starting point to write a new GimpPreview class.  It probably would be just a 
copy of GimpZoomPreview with an additional constructor that allows setting 
the maximum width and height of the widget (which are hardcoded into 
GimpZoomPreview as it is now).


  Torsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : /lists/gimp-developer/attachments/20080418/a45208c6/attachment.bin 


More information about the Gimp-developer mailing list