aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2022-10-09 23:12:08 +0200
committerRobert Tari <robert@tari.in>2022-10-09 23:12:08 +0200
commit300724382245f439796ea61c831bdc552ba1a03c (patch)
treeca8127b1b7cb54a5c2ac6907478b63dc6e8b0a09 /src
parent645579b9ec37e695504c6bf6e61cfb770e7c37d5 (diff)
downloadayatana-indicator-display-300724382245f439796ea61c831bdc552ba1a03c.tar.gz
ayatana-indicator-display-300724382245f439796ea61c831bdc552ba1a03c.tar.bz2
ayatana-indicator-display-300724382245f439796ea61c831bdc552ba1a03c.zip
src/exporter.cpp: Add missing tooltip to header
Diffstat (limited to 'src')
-rw-r--r--src/exporter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/exporter.cpp b/src/exporter.cpp
index 2db9a01..5609ca8 100644
--- a/src/exporter.cpp
+++ b/src/exporter.cpp
@@ -123,6 +123,9 @@ private:
if (!h.label.empty())
g_variant_builder_add(&b, "{sv}", "label", g_variant_new_string(h.label.c_str()));
+ if (!h.tooltip.empty())
+ g_variant_builder_add(&b, "{sv}", "tooltip", g_variant_new_string(h.tooltip.c_str()));
+
if (!h.title.empty() || !h.label.empty())
g_variant_builder_add(&b, "{sv}", "accessible-desc", g_variant_new_string(!h.label.empty() ? h.label.c_str() : h.title.c_str()));