diff --git a/src/graph.cpp b/src/graph.cpp index 7ac5239..ce47a41 100644 --- a/src/graph.cpp +++ b/src/graph.cpp @@ -33,7 +33,8 @@ bool Graph::on_draw(const Cairo::RefPtr &cr) { graph_height = height - graph_y_start - scale_offset; // Grab text color from theme - text_color = this->get_style_context()->get_color(); + auto sc = this->get_style_context(); + text_color = sc->get_color(); // Draw it draw_title(cr);