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??
test.c.gz
Description: GNU Zip compressed data
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
Thanks! Now it works as it will be expected. I didn't notice that
signal in the API before...
El 09/05/2008, a las 12:36, Sven Neumann escribió:
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
Hi,
On Fri, 2008-05-09 at 12:53 +0200, Nicolás Serrano Martínez Santos
wrote:
Thanks! Now it works as it will be expected. I didn't notice that
signal in the API before...
GimpPreviewArea is derived from GtkDrawingArea. It inherits all
functions and signals from its parent classes, including
Hi,
On Wed, 2008-05-07 at 09:27 +0200, Nicolás Serrano Martínez Santos
wrote:
void refresh_preview(GimpPreviewArea *p, GimpDrawable *d){
gint width, height; GimpPixelRgn rgn_input; guchar *buf;
width = gimp_drawable_width(d-drawable_id);
height =
Can you show us some example code?
Of course!
---
(When the plugin dialog appears it creates a layer that changes when
you are changing the options. This layer has variable size and I use
GimpDrawablePreview in order to see it at
Hi! I am using GimpPreviewArea to show previews in my plugin dialog.
My problem is that when the size of area changes and i draw it. It
doesn't refresh the contents but if I minimize the dialog and then
show it again the area is refreshed.
I've tried to use gtk_widget_queue_draw_area but
Hi,
On Tue, 2008-05-06 at 18:58 +0200, Nicolás Serrano Martínez Santos
wrote:
Hi! I am using GimpPreviewArea to show previews in my plugin dialog.
My problem is that when the size of area changes and i draw it. It
doesn't refresh the contents but if I minimize the dialog and then
show it