summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-11-01 12:51:42 -0400
committerMatthias Clasen <mclasen@redhat.com>2019-11-01 12:51:42 -0400
commit19a4e760340b1ee4333d46d77a3b3c676ee4a7cb (patch)
tree05b2508ca5b2008a4c80d9dba29faea62d241b8f
parent6cacff9df1b39c2c3579b09b36023458b7ec3df5 (diff)
downloadgtk+-19a4e760340b1ee4333d46d77a3b3c676ee4a7cb.tar.gz
Update the print dialog for headerbar changes
This was breaking the templates test.
-rw-r--r--gtk/gtkprintunixdialog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c
index d2d516c569..f59e85afae 100644
--- a/gtk/gtkprintunixdialog.c
+++ b/gtk/gtkprintunixdialog.c
@@ -827,8 +827,8 @@ gtk_print_unix_dialog_constructed (GObject *object)
GtkWidget *button, *parent;
button = gtk_dialog_get_widget_for_response (GTK_DIALOG (object), GTK_RESPONSE_APPLY);
g_object_ref (button);
- parent = gtk_widget_get_parent (button);
- gtk_container_remove (GTK_CONTAINER (parent), button);
+ parent = gtk_widget_get_ancestor (button, GTK_TYPE_HEADER_BAR);
+ gtk_container_remove (GTK_CONTAINER (gtk_widget_get_parent (button)), button);
gtk_header_bar_pack_end (GTK_HEADER_BAR (parent), button);
g_object_unref (button);
}