From af65c5d1e1fbab6dc82e3d3746a53ec0bb81f922 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 22 Jul 2022 14:58:34 +0200 Subject: src/rotation-lock.cpp: Add tooltip, rename indicator title from 'Rotation' to 'Display' on desktops. --- src/indicator.h | 1 + src/rotation-lock.cpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) 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 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; -- cgit v1.2.3