summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-10-31 14:08:35 +0100
committerWolfgang Ulbrich <[email protected]>2015-10-31 14:08:35 +0100
commit076f60875f1dc47b6d5fc34f6c007976fd0947cb (patch)
tree942d37b298bdfe32caef2c0e41795f1b83053fa1
parent7f6d502b3c73f094e369307cff4353a7a601142c (diff)
downloadmate-notification-daemon-076f60875f1dc47b6d5fc34f6c007976fd0947cb.tar.bz2
mate-notification-daemon-076f60875f1dc47b6d5fc34f6c007976fd0947cb.tar.xz
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.
-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 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;