[Gimp-developer] Problem refreshing GimpPreviewArea
Sven Neumann
sven at gimp.org
Fri May 9 03:36:12 PDT 2008
Hi,
On Fri, 2008-05-09 at 11:45 +0200, Nicolás Serrano Martínez Santos
wrote:
> Please find attached a simple plugin which consist in a dialog showing
> a drawable. Where you can specify the width and height that will be
> shown.
>
>
> This dialog does not refresh the GimpPreviewArea every time you click
> the spin. am I missing something??
You need to redraw the preview-area everytime it's size changes. It
doesn't keep the buffer across size changes. I have attached a modified
version of your test code that does the right thing.
Sven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.c
Type: text/x-csrc
Size: 6418 bytes
Desc: not available
Url : /lists/gimp-developer/attachments/20080509/20d97ae6/attachment.bin
More information about the Gimp-developer
mailing list