feat(modules): generic label module to allow max-length on all labels

This commit is contained in:
Alexis
2018-08-18 11:43:48 +02:00
parent c128562284
commit b1fd4d7b82
19 changed files with 76 additions and 99 deletions

View File

@ -2,7 +2,7 @@
#include "modules/sway/ipc/client.hpp"
waybar::modules::sway::Window::Window(Bar &bar, Json::Value config)
: bar_(bar), config_(std::move(config))
: ALabel(std::move(config)), bar_(bar)
{
label_.set_name("window");
std::string socketPath = getSocketPath();
@ -59,7 +59,3 @@ void waybar::modules::sway::Window::getFocusedWindow()
std::cerr << e.what() << std::endl;
}
}
waybar::modules::sway::Window::operator Gtk::Widget &() {
return label_;
}