Re: [Gimp-developer] Problem refreshing GimpPreviewArea

2008-05-09 Thread Nicolás Serrano Martínez Santos
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

Re: [Gimp-developer] Problem refreshing GimpPreviewArea

2008-05-09 Thread Sven Neumann
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

Re: [Gimp-developer] Problem refreshing GimpPreviewArea

2008-05-09 Thread Nicolás Serrano Martínez Santos
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

Re: [Gimp-developer] Problem refreshing GimpPreviewArea

2008-05-09 Thread Sven Neumann
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

Re: [Gimp-developer] Problem refreshing GimpPreviewArea

2008-05-08 Thread Sven Neumann
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 =

Re: [Gimp-developer] Problem refreshing GimpPreviewArea

2008-05-07 Thread Nicolás Serrano Martínez Santos
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

[Gimp-developer] Problem refreshing GimpPreviewArea

2008-05-06 Thread Nicolás Serrano Martínez Santos
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

Re: [Gimp-developer] Problem refreshing GimpPreviewArea

2008-05-06 Thread Sven Neumann
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