summaryrefslogtreecommitdiff
path: root/tests/testoverlay.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testoverlay.c')
-rw-r--r--tests/testoverlay.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testoverlay.c b/tests/testoverlay.c
index b153415fb1..ac5cc4d11d 100644
--- a/tests/testoverlay.c
+++ b/tests/testoverlay.c
@@ -615,9 +615,9 @@ main (int argc, char *argv[])
css_provider = gtk_css_provider_new ();
gtk_css_provider_load_from_data (css_provider, css, -1);
- gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
- GTK_STYLE_PROVIDER (css_provider),
- GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+ gtk_style_context_add_provider_for_display (gdk_display_get_default (),
+ GTK_STYLE_PROVIDER (css_provider),
+ GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
win1 = test_nonzerox ();
gtk_widget_show (win1);