Skip to content

Commit

Permalink
move gtkl stuff up in header to fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerryliu committed May 30, 2017
1 parent cbe698e commit 09cacbe
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/window.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ class Window : public Gtk::ApplicationWindow {
private:
const std::string file_path = "/sys/class/hwmon/";

// Other important stuffs:
Gtk::Box m_vbox;
Gtk::HeaderBar m_headerbar;
Gtk::StackSwitcher m_stackswitcher;
Gtk::Stack m_stack;

// Computer Devices:
vector<Device> devices;
vector<vector<vector<Device::sensor_reading>>> all_readings;
Expand All @@ -38,11 +44,6 @@ class Window : public Gtk::ApplicationWindow {
bool stop_work = false;
std::unique_ptr<std::thread> m_WorkerThread =
std::make_unique<std::thread>([this] { update_device_vals(); });
// Other important stuffs:
Gtk::Box m_vbox;
Gtk::HeaderBar m_headerbar;
Gtk::StackSwitcher m_stackswitcher;
Gtk::Stack m_stack;

void update_device_vals();
void update_all_components();
Expand Down

0 comments on commit 09cacbe

Please sign in to comment.