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 :)


_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to