summaryrefslogtreecommitdiff
path: root/gtk/gtkboxgadgetprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2016-01-15 06:47:31 -0500
committerMatthias Clasen <mclasen@redhat.com>2016-01-15 09:43:12 -0500
commit87171469b7dba8ec8ae3397ed292b9d004ef5e90 (patch)
tree1deecd79f665bfe318da3cdd274359f04a11c737 /gtk/gtkboxgadgetprivate.h
parent662c7b87e20aef1599faa994aebc65f4420838a8 (diff)
downloadgtk+-87171469b7dba8ec8ae3397ed292b9d004ef5e90.tar.gz
box gadget: Implement cross-axis alignment
So far, the box gadget is always allocating all children the full size in the cross axis. This behavior corresponds to the align-items: stretch behavior in https://www.w3.org/TR/css-flexbox-1/#align-items-property This commit implements the other modes described there. While widgets have halign/valign properties that we can use for this, the API for inserting gadgets has to change to take an extra align parameter. All callers have been updated to pass GTK_ALIGN_FILL, since that corresponds to the previous behavior. https://bugzilla.gnome.org/show_bug.cgi?id=760668
Diffstat (limited to 'gtk/gtkboxgadgetprivate.h')
-rw-r--r--gtk/gtkboxgadgetprivate.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkboxgadgetprivate.h b/gtk/gtkboxgadgetprivate.h
index ce64e4186a..8063fccc61 100644
--- a/gtk/gtkboxgadgetprivate.h
+++ b/gtk/gtkboxgadgetprivate.h
@@ -21,6 +21,7 @@
#define __GTK_BOX_GADGET_PRIVATE_H__
#include "gtk/gtkcssgadgetprivate.h"
+#include "gtk/gtkenums.h"
G_BEGIN_DECLS
@@ -65,10 +66,12 @@ void gtk_box_gadget_insert_gadget (GtkBoxGadget
int pos,
GtkCssGadget *cssgadget,
gboolean hexpand,
- gboolean vexpand);
+ gboolean vexpand,
+ GtkAlign align);
void gtk_box_gadget_remove_gadget (GtkBoxGadget *gadget,
GtkCssGadget *cssgadget);
+
G_END_DECLS
#endif /* __GTK_BOX_GADGET_PRIVATE_H__ */