diff options
author | Wolfgang Ulbrich <[email protected]> | 2015-10-31 14:26:43 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2015-10-31 14:26:43 +0100 |
commit | f546a360c6c9385eca9b62d6cccf8099dba0a17e (patch) | |
tree | 90eafbcbb38e7013985e396fac7f2a4bad7d25b5 /src/themes/slider | |
parent | 076f60875f1dc47b6d5fc34f6c007976fd0947cb (diff) | |
download | mate-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.c | 4 |
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; |