43 lines
1.7 KiB
Diff
43 lines
1.7 KiB
Diff
From 5fa785ef7b49d10edcd1c48e943bd74a6c2aa475 Mon Sep 17 00:00:00 2001
|
|
From: tanyulong <tanyulong@kylinos.cn>
|
|
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
|
|
|