[714] in The GTK GIMP ToolKit mailing list archive

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

[gtk-list] Re: deleting widgets

daemon@ATHENA.MIT.EDU (Owen Taylor)
Sun Aug 10 23:43:30 1997

To: gtk-list@redhat.com
From: Owen Taylor <owt1@cornell.edu>
Date: 10 Aug 1997 23:43:54 -0400
In-Reply-To: Tim Janik's message of Sun, 10 Aug 1997 17:28:41 +0200 (CEST)
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com


Tim Janik <timj@psynet.net> writes:

> and here the box acutaly gets hidden, but leaves an ugly big nothing in it's
> place, because the main window doesn't get resized automaticaly.

The problem isn't that the resize isn't propagated, it's that windows
don't shrink by default.

But if you call:

void       gtk_window_set_policy       (GtkWindow           *window,
					gint                 allow_shrink,
					gint                 allow_grow,
					gint                 auto_shrink);

things should work OK, without such drastic hacks. Actually, if you
want things to work if the user is resizing the window as well, you
might need to apply the geometry manangement patch I sent to the
list a week or so ago. (Subject: [patch] Fixes to gtktable and
gtkwindow.)

Regards,
                                        Owen

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


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