diff options
author | Filiph Sandström <filiph.sandstrom@filfatstudios.com> | 2021-10-27 13:20:27 +0200 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2021-10-27 22:05:58 +0300 |
commit | d6a072630268eeccee8ce1da0c13fd4a169caa8c (patch) | |
tree | 169e8d0ec79b6c6918a0425986d9c09d9a0b30c7 /Userland/Applets | |
parent | a6ccf6659a706eb985cf5e62cd8e8db05ab18ab9 (diff) | |
download | serenity-d6a072630268eeccee8ce1da0c13fd4a169caa8c.zip |
Everywhere: Rename left/right-click to primary/secondary
This resolves #10641.
Diffstat (limited to 'Userland/Applets')
-rw-r--r-- | Userland/Applets/Audio/main.cpp | 4 | ||||
-rw-r--r-- | Userland/Applets/Network/main.cpp | 2 | ||||
-rw-r--r-- | Userland/Applets/ResourceGraph/main.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Applets/Audio/main.cpp b/Userland/Applets/Audio/main.cpp index 3b5fdb0091..9df2c85ea2 100644 --- a/Userland/Applets/Audio/main.cpp +++ b/Userland/Applets/Audio/main.cpp @@ -120,14 +120,14 @@ public: private: virtual void mousedown_event(GUI::MouseEvent& event) override { - if (event.button() == GUI::MouseButton::Left) { + if (event.button() == GUI::MouseButton::Primary) { if (!m_slider_window->is_visible()) open(); else close(); return; } - if (event.button() == GUI::MouseButton::Right) { + if (event.button() == GUI::MouseButton::Secondary) { m_audio_client->set_muted(!m_audio_muted); update(); } diff --git a/Userland/Applets/Network/main.cpp b/Userland/Applets/Network/main.cpp index de676fc016..dbb44cd856 100644 --- a/Userland/Applets/Network/main.cpp +++ b/Userland/Applets/Network/main.cpp @@ -36,7 +36,7 @@ private: virtual void mousedown_event(GUI::MouseEvent& event) override { - if (event.button() != GUI::MouseButton::Left) + if (event.button() != GUI::MouseButton::Primary) return; pid_t child_pid; diff --git a/Userland/Applets/ResourceGraph/main.cpp b/Userland/Applets/ResourceGraph/main.cpp index c84c32826f..60287ad0a4 100644 --- a/Userland/Applets/ResourceGraph/main.cpp +++ b/Userland/Applets/ResourceGraph/main.cpp @@ -106,7 +106,7 @@ private: virtual void mousedown_event(GUI::MouseEvent& event) override { - if (event.button() != GUI::MouseButton::Left) + if (event.button() != GUI::MouseButton::Primary) return; pid_t child_pid; const char* argv[] = { "SystemMonitor", "-t", "graphs", nullptr }; |