dialog: Fix action button rearrangement
authorTimm Bäder <mail@baedert.org>
Sun, 29 Sep 2019 06:58:30 +0000 (08:58 +0200)
committerTimm Bäder <mail@baedert.org>
Wed, 9 Oct 2019 14:57:22 +0000 (16:57 +0200)
The gtk_widget_get_parent() check does not work anymore since the
headerbar adds the buttons to a child box.

gtk/gtkdialog.c

index 6a6a03ecbd594193ffbe166f1c670930915a63c6..2aea42bd3e1f7fa2a152e6fcd2712ee669f3cf43 100644 (file)
@@ -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)
             {