Update the print dialog for headerbar changes

This was breaking the templates test.
This commit is contained in:
Matthias Clasen 2019-11-01 12:51:42 -04:00
parent 6cacff9df1
commit 19a4e76034

View File

@ -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);
}