aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-09-08 20:32:15 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-09-08 20:32:15 +0200
commit98ae0c7fa6fa8f66605e72310e85e43ae82a3024 (patch)
treeef84aafdf1a08a16f526f05a068f80ac1352b7ab
parentf3b8d73471bc3eacd043901eb77141fa6982a295 (diff)
parentaf65c5d1e1fbab6dc82e3d3746a53ec0bb81f922 (diff)
downloadayatana-indicator-display-98ae0c7fa6fa8f66605e72310e85e43ae82a3024.tar.gz
ayatana-indicator-display-98ae0c7fa6fa8f66605e72310e85e43ae82a3024.tar.bz2
ayatana-indicator-display-98ae0c7fa6fa8f66605e72310e85e43ae82a3024.zip
Merge branch 'sunweaver-pr/tooltip-support'
Attributes GH PR #53: https://github.com/AyatanaIndicators/ayatana-indicator-display/pull/53
-rw-r--r--src/indicator.h1
-rw-r--r--src/rotation-lock.cpp4
2 files changed, 4 insertions, 1 deletions
diff --git a/src/indicator.h b/src/indicator.h
index b5524d1..7379b32 100644
--- a/src/indicator.h
+++ b/src/indicator.h
@@ -32,6 +32,7 @@ struct Header
std::string title;
std::string label;
std::string a11y;
+ std::string tooltip;
std::shared_ptr<GIcon> icon;
bool operator== (const Header& that) const {
diff --git a/src/rotation-lock.cpp b/src/rotation-lock.cpp
index cb864af..9eeca1f 100644
--- a/src/rotation-lock.cpp
+++ b/src/rotation-lock.cpp
@@ -213,6 +213,7 @@ private:
{
Header h;
h.title = _("Rotation");
+ h.tooltip = h.title;
h.a11y = h.title;
h.is_visible = g_settings_get_boolean(m_settings, "rotation-lock");
h.icon = m_icon;
@@ -222,7 +223,8 @@ private:
void update_desktop_header()
{
Header h;
- h.title = _("Rotation");
+ h.title = _("Display");
+ h.tooltip = _("Display settings and features");
h.a11y = h.title;
h.is_visible = TRUE;
h.icon = m_icon;