summaryrefslogtreecommitdiff
path: root/tests/testoverlaystyleclass.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-10-31 02:35:21 +0100
committerBenjamin Otte <otte@redhat.com>2017-10-31 03:05:54 +0100
commit9151e0b9f521060a7792a0e73ea0a8f3e77a0f89 (patch)
tree3ed40b25b874495b5f31ecfa91bb0859ff168a97 /tests/testoverlaystyleclass.c
parenta2e625692e25aa97277dd05670a2e9c49c07b3ee (diff)
downloadgtk+-9151e0b9f521060a7792a0e73ea0a8f3e77a0f89.tar.gz
stylecontext: Port to use display instead of screen
Diffstat (limited to 'tests/testoverlaystyleclass.c')
-rw-r--r--tests/testoverlaystyleclass.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testoverlaystyleclass.c b/tests/testoverlaystyleclass.c
index 2ceeac9189..6ed24b11d6 100644
--- a/tests/testoverlaystyleclass.c
+++ b/tests/testoverlaystyleclass.c
@@ -55,9 +55,9 @@ main (int argc, char *argv[])
".left { border-left-style: none; border-top-left-radius: 0px; border-bottom-left-radius: 0px; }"
".right { border-right-style: none; border-top-right-radius: 0px; border-bottom-right-radius: 0px; }",
-1);
- gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
- 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);
win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_default_size (GTK_WINDOW (win), 600, 600);