summaryrefslogtreecommitdiff
path: root/demos
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 /demos
parenta2e625692e25aa97277dd05670a2e9c49c07b3ee (diff)
downloadgtk+-9151e0b9f521060a7792a0e73ea0a8f3e77a0f89.tar.gz
stylecontext: Port to use display instead of screen
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/css_blendmodes.c6
-rw-r--r--demos/widget-factory/widget-factory.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/demos/gtk-demo/css_blendmodes.c b/demos/gtk-demo/css_blendmodes.c
index ecc7da8cdd..f93f0336f8 100644
--- a/demos/gtk-demo/css_blendmodes.c
+++ b/demos/gtk-demo/css_blendmodes.c
@@ -130,9 +130,9 @@ do_css_blendmodes (GtkWidget *do_widget)
/* Setup the CSS provider for window */
provider = GTK_STYLE_PROVIDER (gtk_css_provider_new ());
- gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
- provider,
- GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+ gtk_style_context_add_provider_for_display (gdk_display_get_default (),
+ provider,
+ GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
setup_listbox (builder, provider);
}
diff --git a/demos/widget-factory/widget-factory.c b/demos/widget-factory/widget-factory.c
index 5c80cab635..64823443f9 100644
--- a/demos/widget-factory/widget-factory.c
+++ b/demos/widget-factory/widget-factory.c
@@ -1661,9 +1661,9 @@ activate (GApplication *app)
provider = gtk_css_provider_new ();
gtk_css_provider_load_from_resource (provider, "/org/gtk/WidgetFactory/widget-factory.css");
- gtk_style_context_add_provider_for_screen (gdk_screen_get_default (),
- GTK_STYLE_PROVIDER (provider),
- GTK_STYLE_PROVIDER_PRIORITY_USER);
+ gtk_style_context_add_provider_for_display (gdk_display_get_default (),
+ GTK_STYLE_PROVIDER (provider),
+ GTK_STYLE_PROVIDER_PRIORITY_USER);
g_object_unref (provider);
builder = gtk_builder_new_from_resource ("/org/gtk/WidgetFactory/widget-factory.ui");