X-Git-Url: https://git.wpitchoune.net/gitweb/?a=blobdiff_plain;f=src%2Fgraph.c;h=3dd18d56fa945c9e596f1af07413188ae3dad2a6;hb=00210c750d24a38360e79df02b4fc91475058cba;hp=98b208bfaaec903290fbb02fa24d57dfcf06a69e;hpb=7e5d6b8c9e50f45b92357643c327a5ae5ad5ef4d;p=psensor.git 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);