From 09cacbe61f6abcc60eb2542d1713190d523819a2 Mon Sep 17 00:00:00 2001 From: Kerry Liu Date: Mon, 29 May 2017 20:03:30 -0400 Subject: [PATCH] move gtkl stuff up in header to fix warnings --- src/window.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/window.h b/src/window.h index d025c2e..b815fb8 100644 --- a/src/window.h +++ b/src/window.h @@ -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 devices; vector>> all_readings; @@ -38,11 +44,6 @@ class Window : public Gtk::ApplicationWindow { bool stop_work = false; std::unique_ptr m_WorkerThread = std::make_unique([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();