From 848e75f5774d56ebb1a67ba4326a96c8ea5ac3f1 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Thu, 20 Oct 2022 02:17:50 -0400 Subject: use new volume meter for other users --- src/windows/voicewindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/windows') diff --git a/src/windows/voicewindow.cpp b/src/windows/voicewindow.cpp index 69eb969..80a388e 100644 --- a/src/windows/voicewindow.cpp +++ b/src/windows/voicewindow.cpp @@ -50,7 +50,7 @@ public: } void SetVolumeMeter(double frac) { - m_meter.set_fraction(frac); + m_meter.SetVolume(frac); } private: @@ -60,7 +60,7 @@ private: Gtk::Label m_name; Gtk::CheckButton m_mute; Gtk::Scale m_volume; - Gtk::ProgressBar m_meter; + VolumeMeter m_meter; public: using type_signal_mute_cs = sigc::signal; @@ -101,6 +101,8 @@ VoiceWindow::VoiceWindow(Snowflake channel_id) m_scroll.set_hexpand(true); m_scroll.set_vexpand(true); + m_capture_volume.SetShowTick(true); + m_capture_gate.set_range(0.0, 100.0); m_capture_gate.set_value_pos(Gtk::POS_LEFT); m_capture_gate.set_value(0.0); -- cgit v1.2.3