summaryrefslogtreecommitdiff
path: root/src/themes/slider/theme.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2015-07-25 17:05:41 +0200
committerinfirit <[email protected]>2015-07-28 12:44:04 +0200
commit0fb782d2dcc129ab0858ea0d4399f6c183cb20c1 (patch)
treec6ccd1b6c00d2240a9659cf1ac5a7cc6be9ec23d /src/themes/slider/theme.c
parentd018e4b7395cea7ba5075912dce4bffae419cd23 (diff)
downloadmate-notification-daemon-0fb782d2dcc129ab0858ea0d4399f6c183cb20c1.tar.bz2
mate-notification-daemon-0fb782d2dcc129ab0858ea0d4399f6c183cb20c1.tar.xz
Gtk3: slider: Do not use deprecated gtk_style_context_get_background_color
Diffstat (limited to 'src/themes/slider/theme.c')
-rw-r--r--src/themes/slider/theme.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/themes/slider/theme.c b/src/themes/slider/theme.c
index 87950f6..0d3cddd 100644
--- a/src/themes/slider/theme.c
+++ b/src/themes/slider/theme.c
@@ -132,7 +132,7 @@ static void fill_background(GtkWidget* widget, WindowData* windata, cairo_t* cr)
#if GTK_CHECK_VERSION(3, 0, 0)
context = gtk_widget_get_style_context(widget);
- gtk_style_context_get_background_color (context, GTK_STATE_FLAG_NORMAL, &bg_color);
+ gtk_style_context_get (context, GTK_STATE_FLAG_NORMAL, "background-color", &bg_color, NULL);
r = bg_color.red;
g = bg_color.green;
b = bg_color.blue;
@@ -447,7 +447,7 @@ static void override_style(GtkWidget* widget)
flags = state_flags_from_type (state);
gtk_style_context_get_color (context, flags, &fg);
- gtk_style_context_get_background_color (context, flags, &bg);
+ gtk_style_context_get (context, flags, "background-color", &bg, NULL);
color_reverse(&fg, &fg2);
color_reverse(&bg, &bg2);
@@ -948,7 +948,7 @@ 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 (context, GTK_STATE_FLAG_NORMAL, "background-color", &fg_color, NULL);
r = color.red;
g = color.green;
b = color.blue;