diff --git a/src/graph.cpp b/src/graph.cpp index 517257b..9a24116 100644 --- a/src/graph.cpp +++ b/src/graph.cpp @@ -18,6 +18,11 @@ Graph::Graph(const vector &sensor_readings, const unsigned int Graph::get_type() const { return type; } const unsigned int Graph::get_device_index() const { return device_index; } +void Graph::update_vals(vector &sensor_readings) { + this->sensor_readings = sensor_readings; + update(); +} + // https://developer.gnome.org/gtkmm-tutorial/stable/chapter-drawingarea.html.en bool Graph::on_draw(const Cairo::RefPtr &cr) { Gtk::Allocation allocation = get_allocation(); @@ -74,11 +79,6 @@ void Graph::check_resize() { } } -void Graph::update_vals(vector &sensor_readings) { - this->sensor_readings = sensor_readings; - update(); -} - void Graph::draw_title(const Cairo::RefPtr &cr) { const int left_offset = 10; const int top_offset = 10;