#pragma once #include #include #include class VolumeWidget : public Gtk::Box { public: VolumeWidget(); virtual ~VolumeWidget(); // Refresh displayed volume from the system void update(); protected: // timeout handler for periodic polling; return true to keep polling bool on_timeout(); private: Gtk::Label label; Glib::RefPtr click; sigc::connection timeoutConn; };