From: Timm Bäder Date: Sun, 29 Sep 2019 06:58:30 +0000 (+0200) Subject: dialog: Fix action button rearrangement X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~20^2~779 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=11ee72fc7e65ff9e4ad8763e2a23c505890fedb0;p=gtk4.git 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. --- 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) {