Re: GtkScrolled windows
- From: Helmethead <hoshem mel comcen com au>
- To: Esteban Quijano Vincenzi <equijano videotek tv>
- Cc: gtk-list gnome org
- Subject: Re: GtkScrolled windows
- Date: Wed, 2 May 2001 14:08:06 +1000
On Tue, May 01, 2001 at 03:31:37PM -0600, Esteban Quijano Vincenzi wrote:
> I found GtkScrolled windows as a good choice for this!
>
> But I have a question:
> When you have a widget contained in a window, you normally can't resize
> that window to a size smaller than the widget, aren't you?
>
> How could GtkScrolled windows could be implemented if this rule it's
> true?
>
> Sorry about these questions, but what I'm doing makes me need to
> understand
> all about this gfk internal funcionality.
>
> Esteban Quijano
The size of a gtk window is determined by performing a size request on it, which recursively requests what size the window's child widgets want. Generally, widgets that get size requested ask their immediate children what size they want, add whatever size the widgets themselves want, and return that value. GtkScrolledWindows just return a very small value, despite whatever ridiculous expanses of screen real estate their children want.
It's all in the source, gtk/gtkscrolledwindow.c and gtk/gtkviewport.c :)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]