Skip to content

Commit 1cd86c7

Browse files
committed
weather: add cssprovider for widget not for screen
Will be needed if this is ever ported to in-process
1 parent a15746b commit 1cd86c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mateweather/mateweather-dialog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ override_widget_font (GtkWidget *widget,
539539
gtk_css_provider_load_from_data (provider, css, -1, NULL);
540540

541541
if (!provider_added) {
542-
gtk_style_context_add_provider_for_screen (gtk_widget_get_screen (widget),
542+
gtk_style_context_add_provider(gtk_widget_get_style_context(GTK_WIDGET(widget)),
543543
GTK_STYLE_PROVIDER (provider),
544544
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
545545
provider_added = TRUE;

0 commit comments

Comments
 (0)