Benjamin Otte
419e1548ab
wrapbox: Lookie, an unused variable
2010-09-14 01:17:17 +02:00
Matthias Clasen
ff29972a48
GtkWrapBox: let GtkContainer handle border width
2010-09-13 18:47:59 -04:00
Matthias Clasen
b64e91adf0
Remove fill options from GtkWrapBox
...
GtkWidget alignment properties make this unnecessary in new containers.
2010-09-13 18:47:59 -04:00
Matthias Clasen
0e484a83d1
Remove padding from GtkWrapBox
...
GtkWidget margins make this unnecessary in new containers.
2010-09-13 18:47:58 -04:00
Tristan Van Berkom
153bfacde0
Fixed GtkWrapBox to allocate variable row AND column heights when in ALIGNED mode
...
With this new approach at request and allocate time, the average child size
is used to determine a good guess at how many columns will fit the box
width; afterwards extra columns are appended and checked to fit.
Then the row heights are calculated based on height-for-width of each
child in the row which now may have individual widths.
2010-09-14 02:32:36 +09:00
Tristan Van Berkom
a79637f081
Changed GtkWrapBox code to avoid a growing GArray of a known size.
2010-09-14 02:32:36 +09:00
Havoc Pennington
c29f0a1392
Fix more SizeRequest implementations to avoid recursive calls to wrapper API
...
GtkFrame, GtkComboBox, GtkExpander, GtkMenu, GtkWrapBox
These are all the examples I could find so far.
https://bugzilla.gnome.org/show_bug.cgi?id=628829
2010-09-12 21:47:10 -04:00
Tristan Van Berkom
68568cff66
Enhanced/Simplified GtkWrapBox api as per Havoc's comments.
...
Made an enum GtkWrapBoxPacking for the expand/fill horizontal/vertical
boolean options... changed xpadding/ypadding to be horizontal-padding
and vertical-padding for a more consistent api and better readablility.
2010-09-02 15:36:36 +09:00
Tristan Van Berkom
c9ccc7551b
Some api changes for GtkWrapBox
...
Ammended documentation for GTK_WRAP_BOX_SPREAD_EVEN and renamed
GTK_WRAP_BOX_SPREAD_BEGIN -> GTK_WRAP_BOX_SPREAD_START.
2010-09-02 14:22:55 +09:00
Matthias Clasen
15ea566813
Wrap box assimilation
...
Some coding style cleanups, rename Priv to Private, add docs
2010-09-01 20:03:30 -04:00
Tristan Van Berkom
deaa351630
Added initial revision of GtkWrapBox container widget and test case.
2010-08-28 16:01:59 +09:00