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

2008-04-23 Thread Nicolás Serrano Martínez Santos
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.

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

2008-04-18 Thread Torsten Neuer
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

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

2008-04-18 Thread Sven Neumann
Hi, On Fri, 2008-04-18 at 09:57 +0200, Torsten Neuer wrote: 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

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

2008-04-17 Thread Sven Neumann
Hi, On Wed, 2008-04-16 at 11:15 +0200, Nicolás Serrano Martínez Santos wrote: 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

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

2008-04-16 Thread Nicolás Serrano Martínez Santos
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:

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

2008-04-16 Thread 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