summaryrefslogtreecommitdiff
path: root/tests/testiconview-keynav.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testiconview-keynav.c')
-rw-r--r--tests/testiconview-keynav.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/testiconview-keynav.c b/tests/testiconview-keynav.c
index b33a051a63..4fb3272477 100644
--- a/tests/testiconview-keynav.c
+++ b/tests/testiconview-keynav.c
@@ -216,16 +216,14 @@ static void
set_styles (void)
{
GtkCssProvider *provider;
- GdkScreen *screen;
provider = gtk_css_provider_new ();
gtk_css_provider_load_from_data (provider, CSS, -1);
- screen = gdk_display_get_default_screen (gdk_display_get_default ());
-
- gtk_style_context_add_provider_for_screen (screen, GTK_STYLE_PROVIDER (provider),
- GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+ gtk_style_context_add_provider_for_display (gdk_display_get_default (),
+ GTK_STYLE_PROVIDER (provider),
+ GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
}
int