From 71c96cd31a2c5142f653abf987ce3f12f810de08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ant=C3=B3nio=20Fernandes?= Date: Sun, 14 Feb 2021 14:40:45 +0000 Subject: general: Stop using the state argument of GtkStyleContext getters As per https://docs.gtk.org/gtk4/migrating-3to4.html#stop-using-the-state-argument-of-gtkstylecontext-getters --- src/nautilus-toolbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nautilus-toolbar.c') diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c index dc5574a07..b52920853 100644 --- a/src/nautilus-toolbar.c +++ b/src/nautilus-toolbar.c @@ -687,7 +687,7 @@ on_operations_icon_draw (GtkWidget *widget, GtkStyleContext *style_context; style_context = gtk_widget_get_style_context (widget); - gtk_style_context_get_color (style_context, gtk_widget_get_state_flags (widget), &foreground); + gtk_style_context_get_color (style_context, gtk_style_context_get_state (style_context), &foreground); background = foreground; background.alpha *= 0.3; -- cgit v1.2.1