diff options
Diffstat (limited to 'src/themes/slider')
-rw-r--r-- | src/themes/slider/theme.c | 6 |
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; |