[gtk/wip/baedert/for-master: 4/11] dialog: Fix action button	rearrangement
- From: Timm Bäder <baedert src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gtk/wip/baedert/for-master: 4/11] dialog: Fix action button	rearrangement
 
- Date: Sun,  6 Oct 2019 10:05:43 +0000 (UTC)
 
commit 29e82139662f5ad9597622883483212e08edc8d6
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]