From 076f60875f1dc47b6d5fc34f6c007976fd0947cb Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Sat, 31 Oct 2015 14:08:35 +0100 Subject: Revert "Gtk3: slider: Do not use deprecated gtk_style_context_get_background_color" This commit breaks the bg of notifications, in result notifications are unreadable, black fg color on black bg. This reverts commit 0fb782d2dcc129ab0858ea0d4399f6c183cb20c1. --- src/themes/slider/theme.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/themes/slider') diff --git a/src/themes/slider/theme.c b/src/themes/slider/theme.c index 21d0123..1e80a0e 100644 --- a/src/themes/slider/theme.c +++ b/src/themes/slider/theme.c @@ -151,7 +151,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 (context, GTK_STATE_FLAG_NORMAL, "background-color", &bg_color, NULL); + gtk_style_context_get_background_color (context, GTK_STATE_FLAG_NORMAL, &bg_color); r = bg_color.red; g = bg_color.green; b = bg_color.blue; @@ -506,7 +506,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 (context, flags, "background-color", &bg, NULL); + gtk_style_context_get_background_color (context, flags, &bg); color_reverse(&fg, &fg2); color_reverse(&bg, &bg2); @@ -1008,7 +1008,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 (context, GTK_STATE_FLAG_NORMAL, "background-color", &fg_color, NULL); + gtk_style_context_get_background_color (context, GTK_STATE_FLAG_NORMAL, &fg_color); r = color.red; g = color.green; b = color.blue; -- cgit v1.2.1