aboutsummaryrefslogtreecommitdiff
path: root/src/exporter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/exporter.cpp')
-rw-r--r--src/exporter.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/exporter.cpp b/src/exporter.cpp
index b3d586b..c75eb5b 100644
--- a/src/exporter.cpp
+++ b/src/exporter.cpp
@@ -1,5 +1,6 @@
/*
* Copyright 2014 Canonical Ltd.
+ * Copyright 2022-2023 Robert Tari
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 3, as published
@@ -15,6 +16,7 @@
*
* Authors:
* Charles Kerr <charles.kerr@canonical.com>
+ * Robert Tari <robert@tari.in>
*/
#include <src/exporter.h>
@@ -81,7 +83,7 @@ private:
export_actions(m_indicator);
- for (auto& profile : m_indicator->profiles())
+ for (const auto& profile : m_indicator->profiles())
export_profile(m_indicator, profile);
}
@@ -121,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()));
@@ -183,7 +188,6 @@ private:
static_cast<Impl*>(gthis)->emit_name_lost(name);
}
- const std::string m_bus_name;
core::Signal<std::string> m_name_lost;
std::shared_ptr<Indicator> m_indicator;
std::set<guint> m_exported_menu_ids;