On Wed, Nov 18, 2009 at 10:35, Per Hermansson
<hermansson....@bredband.net> wrote:

> My question is if someone knows a good way to implement this.
> I've tested with estimating the widgets size and if the sum of all children
> is larger
> then the container the next sub-container is used.
> One problem is that the widget's size is not known until the widget gets
> visible
> so I need to workaround that.

Without thinking about this too much (so this may not fit your code or
use model), you could defer placing widgets in subcontainers until the
container is realized.  At that point you'll know their sizes.

     -brian
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to