Merge branch 'fix-print-dialog' into 'master'

Update the print dialog for headerbar changes

See merge request GNOME/gtk!1156
This commit is contained in:
Matthias Clasen 2019-11-01 17:00:34 +00:00
commit eca7fa075e

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