Re: gtk box and flow layout
- From: daa84 <daa84 inbox ru>
- To: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: gtk box and flow layout
- Date: Mon, 19 Feb 2007 12:20:43 +0300
Hello!
Paul Pogonyshev wrote:
In case you want row-breaking functionality of FlowLayout (e.g. when third
widget is placed below the first two since there is not enough width), you
likely need a custom container, as standard ones don't support this.
Otherwise you probably just want GtkHBox/GtkVBox.
Paul
I start to write my widget with FlowLayout functionality (with
row-breaking). And find next problem:
gtk_widget_size_request function obtains the preferred size of a widget
gtk_widget_size_allocate assign a size and position to child widgets
When I fill GtkRequisition structure I send my preferred size of a
widget (width and height). But in size_allocate function I get new width
that smaller then first width value. Than it is need to increase size.
How can I do it? Initiate call size_request function another one time or
change GtkAllocation values.
This is only my thoughts, I don't test this in code for now.
Thanks!
Sorry for my bad English.
--
Andrey Dubravin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]