used the foreground color defined by the theme for the
[psensor.git] / src / graph.c
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);