mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Merge branch 'tray-gdbus' of github.com:topisani/Waybar into tray-gdbus
This commit is contained in:
@ -3,14 +3,12 @@
|
||||
#include <iostream>
|
||||
|
||||
waybar::modules::SNI::Tray::Tray(const Json::Value &config)
|
||||
: config_(config), watcher_(), host_(dp) {}
|
||||
: config_(config), watcher_(), host_(&dp) {}
|
||||
|
||||
auto waybar::modules::SNI::Tray::update() -> void {
|
||||
for (auto item : host_.items) {
|
||||
if (item.widget) {
|
||||
item.widget->set_tooltip_text(item.title);
|
||||
box_.pack_start(*item.widget);
|
||||
}
|
||||
for (auto &item : host_.items) {
|
||||
item.event_box.set_tooltip_text(item.title);
|
||||
box_.pack_start(item.event_box);
|
||||
}
|
||||
if (box_.get_children().size() > 0) {
|
||||
box_.set_name("tray");
|
||||
|
Reference in New Issue
Block a user