diff --git a/0006-fix-the-slider-to-adjust-the-microphone-volume.patch b/0006-fix-the-slider-to-adjust-the-microphone-volume.patch new file mode 100644 index 0000000..82667ba --- /dev/null +++ b/0006-fix-the-slider-to-adjust-the-microphone-volume.patch @@ -0,0 +1,42 @@ +From 5fa785ef7b49d10edcd1c48e943bd74a6c2aa475 Mon Sep 17 00:00:00 2001 +From: tanyulong +Date: Mon, 12 Jul 2021 17:03:29 +0800 +Subject: [PATCH] fix the slider to adjust the microphone volume + +--- + .../ukmedia_device_switch_widget.cpp | 12 +++++++++++- + 1 file changed, 11 insertions(+), 1 deletion(-) + +diff --git a/ukui-volume-control-applet-qt/ukmedia_device_switch_widget.cpp b/ukui-volume-control-applet-qt/ukmedia_device_switch_widget.cpp +index 3a262a3..b8dc5f5 100755 +--- a/ukui-volume-control-applet-qt/ukmedia_device_switch_widget.cpp ++++ b/ukui-volume-control-applet-qt/ukmedia_device_switch_widget.cpp +@@ -1416,6 +1416,15 @@ void DeviceSwitchWidget::add_stream (DeviceSwitchWidget *w, MateMixerStream *str + MateMixerStreamControl *c = mate_mixer_stream_get_default_control(stream); + update_input_settings (w,c); + } ++ else { ++ mate_mixer_context_set_default_input_stream(w->context,stream); ++ qDebug() << "add stream set input stream 1" << mate_mixer_stream_get_name(stream); ++ bar_set_stream (w, stream); ++ name = mate_mixer_stream_get_name (stream); ++ label = mate_mixer_stream_get_label (stream); ++ qDebug() << "add stream set input stream" << name; ++ w->input_stream_list->append(name); ++ } + } + else if (direction == MATE_MIXER_DIRECTION_OUTPUT) { + MateMixerStream *output; +@@ -2441,7 +2450,8 @@ void DeviceSwitchWidget::update_icon_input (DeviceSwitchWidget *w,MateMixerStrea + * control for the icon */ + control = input; + } +- show = TRUE; ++ //show = true; ++ + break; + } + +-- +2.23.0 + diff --git a/ukui-media.spec b/ukui-media.spec index 3c5a18d..324580d 100644 --- a/ukui-media.spec +++ b/ukui-media.spec @@ -1,6 +1,6 @@ Name: ukui-media Version: 3.0.2 -Release: 6 +Release: 7 Summary: UKUI media utilities License: GPL-2+ GPL-3+ LGPL-2+ BSD-3-Clause URL: http://www.ukui.org @@ -37,6 +37,7 @@ patch1: 0002-Fix-the-right-menu-without-frosted-glass-issue.patch patch2: 0003-Add-a-detection-mechanism-when-PulseAudio-exits-abno.patch patch3: 0004-update-gsetting.patch patch4: 0005-Solve-the-problem-of-adjusting-animation-freeze.patch +patch5: 0006-fix-the-slider-to-adjust-the-microphone-volume.patch %description A simple and lightweight screensaver written by Qt5. @@ -59,6 +60,8 @@ Requires: %{name}%{?_isa} = %{version}-%{release} %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 + %build ./autogen.sh --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib64 make @@ -119,6 +122,9 @@ glib-compile-schemas /usr/share/glib-2.0/schemas/ %{_datadir}/glib-2.0/ %changelog +* Jul 12 2021 tanyulong - 3.0.2-7 +- Solve the problem of dragging the slider to adjust the microphone volume + * Mon Jul 12 2021 tanyulong - 3.0.2-6 - Solve the problem of adjusting animation freeze to adjust the sound