1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-05 21:42:47 -05:00

GTK3 prep: refactor the layout calculation in Columns.

Previously, columns_size_request and columns_size_allocate would each
loop over all the widgets doing computations for both width and
height. Now I've separated out the width parts from the height parts,
and moved both out into four new functions, so that the top-level
columns_size_request and columns_size_allocate are just wrappers that
call the new functions and plumb size and position information between
them and GTK.

Actual functionality should be unchanged by this patch.
This commit is contained in:
Simon Tatham
2015-08-23 14:49:01 +01:00
parent c3ef30c883
commit 64b51dcbba
2 changed files with 278 additions and 165 deletions

View File

@ -45,6 +45,7 @@ struct ColumnsChild_tag {
/* Otherwise, this entry represents a change in the column setup. */
gint ncols;
gint *percentages;
gint x, y, w, h; /* used during an individual size computation */
};
GType columns_get_type(void);