aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-07-22 14:58:34 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-07-22 15:23:40 +0200
commitaf65c5d1e1fbab6dc82e3d3746a53ec0bb81f922 (patch)
treeef84aafdf1a08a16f526f05a068f80ac1352b7ab
parentf3b8d73471bc3eacd043901eb77141fa6982a295 (diff)
downloadayatana-indicator-display-af65c5d1e1fbab6dc82e3d3746a53ec0bb81f922.tar.gz
ayatana-indicator-display-af65c5d1e1fbab6dc82e3d3746a53ec0bb81f922.tar.bz2
ayatana-indicator-display-af65c5d1e1fbab6dc82e3d3746a53ec0bb81f922.zip
src/rotation-lock.cpp: Add tooltip, rename indicator title from 'Rotation' to 'Display' on desktops.
-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;