used the foreground color defined by the theme for the
authorJean-Philippe Orsini <jeanfi@gmail.com>
Wed, 4 Apr 2012 06:54:31 +0000 (06:54 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Wed, 4 Apr 2012 06:54:31 +0000 (06:54 +0000)
   font of the graph.

NEWS
src/graph.c

diff --git a/NEWS b/NEWS
index e9da337..df16ee8 100644 (file)
--- 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
 
index 98b208b..3dd18d5 100644 (file)
@@ -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);