tests: Fix print-editor

Don't assume GtkWindow is a container.
This commit is contained in:
Alexander Mikhaylenko 2020-05-11 01:59:25 +05:00
parent f6a4e68973
commit b7bfb29ae8

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