From 11ee72fc7e65ff9e4ad8763e2a23c505890fedb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 29 Sep 2019 08:58:30 +0200 Subject: [PATCH] dialog: Fix action button rearrangement The gtk_widget_get_parent() check does not work anymore since the headerbar adds the buttons to a child box. --- gtk/gtkdialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c index 6a6a03ecbd..2aea42bd3e 100644 --- a/gtk/gtkdialog.c +++ b/gtk/gtkdialog.c @@ -1513,7 +1513,7 @@ gtk_dialog_buildable_custom_finished (GtkBuildable *buildable, { apply_response_for_action_area (dialog, GTK_WIDGET (object), ad->response_id); } - else if (gtk_widget_get_parent (GTK_WIDGET (object)) == priv->headerbar) + else if (gtk_widget_get_ancestor (GTK_WIDGET (object), GTK_TYPE_HEADER_BAR) == priv->headerbar) { if (is_action) {