mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-10-31 07:52:42 +01:00 
			
		
		
		
	feat(tray): multiple hosts
This commit is contained in:
		| @@ -10,7 +10,8 @@ namespace waybar::modules::SNI { | ||||
|  | ||||
| class Host { | ||||
|   public: | ||||
|     Host(const Json::Value&, const std::function<void(std::unique_ptr<Item>&)>&, | ||||
|     Host(const std::size_t id, const Json::Value&, | ||||
|       const std::function<void(std::unique_ptr<Item>&)>&, | ||||
|       const std::function<void(std::unique_ptr<Item>&)>&); | ||||
|     ~Host(); | ||||
|   private: | ||||
|   | ||||
| @@ -2,6 +2,7 @@ | ||||
|  | ||||
| #include <fmt/format.h> | ||||
| #include <thread> | ||||
| #include "bar.hpp" | ||||
| #include "util/json.hpp" | ||||
| #include "IModule.hpp" | ||||
| #include "modules/sni/watcher.hpp" | ||||
| @@ -11,7 +12,7 @@ namespace waybar::modules::SNI { | ||||
|  | ||||
| class Tray : public IModule { | ||||
|   public: | ||||
|     Tray(const Json::Value&); | ||||
|     Tray(Bar& bar, const Json::Value&); | ||||
|     auto update() -> void; | ||||
|     operator Gtk::Widget &(); | ||||
|   private: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Alexis
					Alexis