[151] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: Hinting at reasonable window sizes
daemon@ATHENA.MIT.EDU (Federico Mena)
Wed May 14 22:55:57 1997
Date: Wed, 14 May 1997 21:17:38 -0500
From: Federico Mena <federico@nuclecu.unam.mx>
To: gtk-list@redhat.com
In-reply-to: <199705150201.WAA12625@nigel.redhat.com> (johnsonm@redhat.com)
Reply-to: federico@nuclecu.unam.mx
Resent-From: gtk-list@redhat.com
> I'm trying to write a gtk app in which I'd like a table inside a
> scrolled window. It works in that I've got a scrolled window that
> contains a table -- but it's unreadable and unusable as is because
> it seems to default to about a 40x30 pixel area inside the scrolled
> window, and I have no idea how to change that.
gtk_widget_set_usize(scrolled_window, XSIZE, YSIZE);
> I really don't usually want the scrollbars to be visible at all!
> I'm putting them there in case the data in the case requires a
> larger window than I want to put up by default, or than would fit
> on the screen
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled_window),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
Quartic
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null