summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2018-07-19 17:06:21 -0400
committerlukefromdc <[email protected]>2018-07-19 23:20:35 -0400
commit1cd86c770936bf3adabef52c80f7e277daa871e6 (patch)
tree9a87400d36c6a84d14ab7da09679e4aca5089cc9
parenta15746b9e73355c16750bd95c4a6ddc73e26d1ac (diff)
downloadmate-applets-1cd86c770936bf3adabef52c80f7e277daa871e6.tar.bz2
mate-applets-1cd86c770936bf3adabef52c80f7e277daa871e6.tar.xz
weather: add cssprovider for widget not for screen
Will be needed if this is ever ported to in-process
-rw-r--r--mateweather/mateweather-dialog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mateweather/mateweather-dialog.c b/mateweather/mateweather-dialog.c
index 0c4ee3c9..02ea876b 100644
--- a/mateweather/mateweather-dialog.c
+++ b/mateweather/mateweather-dialog.c
@@ -539,7 +539,7 @@ override_widget_font (GtkWidget *widget,
gtk_css_provider_load_from_data (provider, css, -1, NULL);
if (!provider_added) {
- gtk_style_context_add_provider_for_screen (gtk_widget_get_screen (widget),
+ gtk_style_context_add_provider(gtk_widget_get_style_context(GTK_WIDGET(widget)),
GTK_STYLE_PROVIDER (provider),
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
provider_added = TRUE;