summaryrefslogtreecommitdiff
path: root/src/themes/slider
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-10-31 14:26:43 +0100
committerWolfgang Ulbrich <[email protected]>2015-10-31 14:26:43 +0100
commitf546a360c6c9385eca9b62d6cccf8099dba0a17e (patch)
tree90eafbcbb38e7013985e396fac7f2a4bad7d25b5 /src/themes/slider
parent076f60875f1dc47b6d5fc34f6c007976fd0947cb (diff)
downloadmate-notification-daemon-f546a360c6c9385eca9b62d6cccf8099dba0a17e.tar.bz2
mate-notification-daemon-f546a360c6c9385eca9b62d6cccf8099dba0a17e.tar.xz
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;
Diffstat (limited to 'src/themes/slider')
-rw-r--r--src/themes/slider/theme.c4
1 files changed, 2 insertions, 2 deletions
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;