[9779] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: please heeeeeeeelpp: gtk_window_position (.., GTK_WIN_POS_CENTER);

daemon@ATHENA.MIT.EDU (Paolo Molaro)
Tue Nov 3 02:38:36 1998

Date: Tue, 3 Nov 1998 08:45:02 +0100
From: Paolo Molaro <lupus@lettere.unipd.it>
To: gtk-list@redhat.com
Mail-Followup-To: gtk-list@redhat.com
In-Reply-To: <Pine.HPP.3.96n.981102215834.13761A-100000@mlucom6.urz.uni-halle.de>; from Andreas Tille on Mon, Nov 02, 1998 at 10:06:32PM +0100
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

On Mon, Nov 02, 1998 at 10:06:32PM +0100, Andreas Tille wrote:
> As I reported some weeks ago, I was able to set GDK_HINT_MIN_SIZE and
> GDK_HINT_MAX_SIZE for a GdkWindow so that resizing showed the wished
> effect of resizing the pixmap in the window (that means _scaling_ it
> to fit the window).
> 
> Using a GtkWindow the contents pixmap is displayed only partially when
> shrinking the window and ist displayed multiple times when enlarging
> the window.  Unfortunately nobody in this list and nobody in gtk-app-devel

You need to resize the pixmap yourself. GdkImlib may be useful to
do that: look at the test code.
Basically you connect to the configure_event, resize your image
according to the new width and height, and call
gdk_window_set_back_pixmap() again.

lupus

-- 
"The number of UNIX installations has grown to 10, with more expected."
    - _The UNIX Programmer's Manual_, Second Edition, June, 1972.

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post