Fix the icontheme test

We rely on log messages here. Since logging is per-display
now, we need to set a display on our custom icontheme object
to get the expected log messages.
This commit is contained in:
Matthias Clasen 2018-01-16 15:42:28 -05:00
parent e8079df420
commit 33ec75944f

View File

@ -18,6 +18,7 @@ get_test_icontheme (gboolean force_reload)
icon_theme = gtk_icon_theme_new ();
gtk_icon_theme_set_custom_theme (icon_theme, "icons");
gtk_icon_theme_set_display (icon_theme, gdk_display_get_default ());
current_dir = g_test_get_dir (G_TEST_DIST);
gtk_icon_theme_set_search_path (icon_theme, &current_dir, 1);