[gtk] dialog: Fix action button rearrangement



commit 11ee72fc7e65ff9e4ad8763e2a23c505890fedb0
Author: Timm Bäder <mail baedert org>
Date:   Sun Sep 29 08:58:30 2019 +0200

    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)
             {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]