feat(tray): fallback to Title for items without ToolTip
parent
84a8f79bbe
commit
1418f96e46
|
@ -119,6 +119,9 @@ void Item::setProperty(const Glib::ustring& name, Glib::VariantBase& value) {
|
||||||
id = get_variant<std::string>(value);
|
id = get_variant<std::string>(value);
|
||||||
} else if (name == "Title") {
|
} else if (name == "Title") {
|
||||||
title = get_variant<std::string>(value);
|
title = get_variant<std::string>(value);
|
||||||
|
if (tooltip.text.empty()) {
|
||||||
|
event_box.set_tooltip_markup(title);
|
||||||
|
}
|
||||||
} else if (name == "Status") {
|
} else if (name == "Status") {
|
||||||
status = get_variant<std::string>(value);
|
status = get_variant<std::string>(value);
|
||||||
} else if (name == "IconName") {
|
} else if (name == "IconName") {
|
||||||
|
|
Loading…
Reference in New Issue