El jue, 15-11-2007 a las 09:25 +0100, Sven Neumann escribió:
> Hi,
>
> On Wed, 2007-11-14 at 10:34 +0100, [EMAIL PROTECTED] wrote:
>
> > I think that if a newbie developing plugins uses this value(an array type)
> > he
> > will miss that he has to add the size before of it. I have miss a few a
Hi! I'm trying to develop an interface of a plugin and I would like
to use a rectangular gimp preview widget. Despite I've been looking
over the documentation of this class and the parents in GTK+ the
widgets is always square.
In the code of gimppreview at gimp_preview_init i've find this:
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
This is a design decision of the GimpPreview widget. If this
doesn't fit
your needs, then you can't use GimpPreview.
In the end I used GimpPreviewArea directly (i don't see it at the
documentationt at first) and if i put it inside a GtkAspectFrame i
can adjust the aspect.
Thanks!!___
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 it
>
> 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
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
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
versi
Hi! Is it possible to define a shortcut for a plugin inside it's
code? For instance I want that my plug-in is associated with "Crtl +
Alt + f" automatically when installing it. Now I have to do it using
the Keybinding option at the Gimp Toolbox. Would I have to parse
the .gimp-2.4/menurc fi