image module CSS fix

This commit is contained in:
Brent George
2023-01-24 14:34:02 -05:00
parent dd9e3d0172
commit e128c48573
4 changed files with 21 additions and 15 deletions

View File

@ -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_;