From f546a360c6c9385eca9b62d6cccf8099dba0a17e Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Sat, 31 Oct 2015 14:26:43 +0100 Subject: GTK3 slider: fix some warnings - theme.c:1010:31: warning: passing argument 1 of 'gtk_style_context_get_color' from incompatible pointer type [-Wincompatible-pointer-types] gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &color); - theme.c:1011:25: warning: passing argument 1 of 'gtk_style_context_get' from incompatible pointer type [-Wincompatible-pointer-types] gtk_style_context_get (context, GTK_STATE_FLAG_NORMAL, "background-color", &fg_color, NULL); - theme.c:979:19: warning: variable 'style' set but not used [-Wunused-but-set-variable] GtkStyleContext* style; --- src/themes/slider/theme.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/themes/slider/theme.c b/src/themes/slider/theme.c index 1e80a0e..04ff9ab 100644 --- a/src/themes/slider/theme.c +++ b/src/themes/slider/theme.c @@ -1007,8 +1007,8 @@ static gboolean on_countdown_expose(GtkWidget* pie, GdkEventExpose* event, Windo cairo_set_operator(cr, CAIRO_OPERATOR_OVER); #if GTK_CHECK_VERSION (3, 0, 0) - gtk_style_context_get_color (context, GTK_STATE_FLAG_NORMAL, &color); - gtk_style_context_get_background_color (context, GTK_STATE_FLAG_NORMAL, &fg_color); + gtk_style_context_get_color (style, GTK_STATE_FLAG_NORMAL, &color); + gtk_style_context_get_background_color (style, GTK_STATE_FLAG_NORMAL, &fg_color); r = color.red; g = color.green; b = color.blue; -- cgit v1.2.1