mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-11-04 09:42:42 +01:00 
			
		
		
		
	Merge pull request #1975 from bd-g/fix-image
This commit is contained in:
		@@ -7,6 +7,7 @@
 | 
			
		||||
#include <string>
 | 
			
		||||
 | 
			
		||||
#include "ALabel.hpp"
 | 
			
		||||
#include "gtkmm/box.h"
 | 
			
		||||
#include "util/command.hpp"
 | 
			
		||||
#include "util/json.hpp"
 | 
			
		||||
#include "util/sleeper_thread.hpp"
 | 
			
		||||
@@ -15,7 +16,7 @@ namespace waybar::modules {
 | 
			
		||||
 | 
			
		||||
class Image : public AModule {
 | 
			
		||||
 public:
 | 
			
		||||
  Image(const std::string&, const std::string&, const Json::Value&);
 | 
			
		||||
  Image(const std::string&, const Json::Value&);
 | 
			
		||||
  auto update() -> void;
 | 
			
		||||
  void refresh(int /*signal*/);
 | 
			
		||||
 | 
			
		||||
@@ -23,6 +24,7 @@ class Image : public AModule {
 | 
			
		||||
  void delayWorker();
 | 
			
		||||
  void handleEvent();
 | 
			
		||||
 | 
			
		||||
  Gtk::Box box_;
 | 
			
		||||
  Gtk::Image image_;
 | 
			
		||||
  std::string path_;
 | 
			
		||||
  int size_;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user