From 3d524cc67d400074e19990bfc528ee15ce83ce35 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Wed, 27 Mar 2019 22:55:07 -0300 Subject: [PATCH 1/2] build: Install gtkboxlayout.h This is included by gtk.h, and thus required to build. --- gtk/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/meson.build b/gtk/meson.build index 44114fb23b..dbdbbb213a 100644 --- a/gtk/meson.build +++ b/gtk/meson.build @@ -426,6 +426,7 @@ gtk_public_headers = files([ 'gtkbindings.h', 'gtkborder.h', 'gtkbox.h', + 'gtkboxlayout.h', 'gtkbuildable.h', 'gtkbuilder.h', 'gtkbutton.h', From 56d420c06e9d8514c1c328925c1adebd953a8fa4 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Wed, 27 Mar 2019 23:25:22 -0300 Subject: [PATCH 2/2] boxlayout: Notify orientation changes This was missing from the initial implementation, and breaks the tests. --- gtk/gtkboxlayout.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtkboxlayout.c b/gtk/gtkboxlayout.c index 0b88e39fcf..5d3ef2bd0d 100644 --- a/gtk/gtkboxlayout.c +++ b/gtk/gtkboxlayout.c @@ -91,6 +91,8 @@ gtk_box_layout_set_orientation (GtkBoxLayout *self, _gtk_orientable_set_style_classes (GTK_ORIENTABLE (widget)); gtk_layout_manager_layout_changed (layout_manager); + + g_object_notify (G_OBJECT (self), "orientation"); } static void