print-editor: Fix a critical

GtkWindow is no longer a container, so don't call
gtk_container_add on it.
This commit is contained in:
Matthias Clasen 2020-05-10 12:53:37 -04:00
parent caab6ac6e7
commit 2b920b22c1

View File

@ -748,7 +748,7 @@ activate (GApplication *app)
update_title (GTK_WINDOW (main_window));
box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_container_add (GTK_CONTAINER (main_window), box);
gtk_window_set_child (GTK_WINDOW (main_window), box);
/* Create document */
sw = gtk_scrolled_window_new (NULL, NULL);