Waybar/src/group.cpp

20 lines
428 B
C++
Raw Normal View History

2021-10-31 22:55:13 +00:00
#include "group.hpp"
2022-04-06 06:37:19 +00:00
2021-10-31 22:55:13 +00:00
#include <fmt/format.h>
2022-04-06 06:37:19 +00:00
2021-10-31 22:55:13 +00:00
#include <util/command.hpp>
namespace waybar {
Group::Group(const std::string& name, const Bar& bar, const Json::Value& config)
: AModule(config, name, "", false, false),
2022-04-06 06:37:19 +00:00
box{bar.vertical ? Gtk::ORIENTATION_HORIZONTAL : Gtk::ORIENTATION_VERTICAL, 0} {}
2021-10-31 22:55:13 +00:00
auto Group::update() -> void {
// noop
}
Group::operator Gtk::Widget&() { return box; }
} // namespace waybar