From 00210c750d24a38360e79df02b4fc91475058cba Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Wed, 4 Apr 2012 06:54:31 +0000 Subject: [PATCH] used the foreground color defined by the theme for the font of the graph. --- NEWS | 4 +++- src/graph.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index e9da337..df16ee8 100644 --- a/NEWS +++ b/NEWS @@ -14,7 +14,9 @@ ** psensor: fixed systray and application indicator visible at the same time. (Closes LP: #971098) ** psensor: fixed wrong background color, get the background color of - the window and not the canvas widget. + the window and not the canvas widget. (Closes LP: #973122) +** psensor: used the foreground color defined by the theme for the + font of the graph. * v0.6.2.17 diff --git a/src/graph.c b/src/graph.c index 98b208b..3dd18d5 100644 --- a/src/graph.c +++ b/src/graph.c @@ -288,7 +288,7 @@ graph_update(struct psensor **sensors, window); /** Set the color for text drawing */ - style_ctx = gtk_widget_get_style_context(w_graph); + style_ctx = gtk_widget_get_style_context(window); gtk_style_context_get_color(style_ctx, GTK_STATE_FLAG_NORMAL, &rgba); cairo_set_source_rgb(cr, rgba.red, rgba.green, rgba.blue); -- 2.7.4