summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-08-11 17:25:55 +0000
committerLennart Poettering <lennart@poettering.net>2006-08-11 17:25:55 +0000
commit79d647f33ec529243a05a5c4533b9eb38449e470 (patch)
tree2b9cada86acbaca62c101bd445f3d529e6f8ca40
parent1af6b39a9a0397b2ef5d8beb9256257f3894f5e1 (diff)
In times where the sink/source names are generated from HAL UDIs don't show the cryptic device name any more
git-svn-id: file:///home/lennart/svn/public/pavucontrol/trunk@43 c17c95f2-f111-0410-90bf-f30a9569010c
-rw-r--r--src/pavucontrol.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/pavucontrol.cc b/src/pavucontrol.cc
index 5b455e8..e2121b8 100644
--- a/src/pavucontrol.cc
+++ b/src/pavucontrol.cc
@@ -557,10 +557,9 @@ void MainWindow::updateSink(const pa_sink_info &info) {
w->type = info.flags & PA_SINK_HARDWARE ? SINK_HARDWARE : SINK_VIRTUAL;
w->name = info.name;
+ w->boldNameLabel->set_text("");
gchar *txt;
- w->boldNameLabel->set_markup(txt = g_markup_printf_escaped("<b>%s</b>", info.name));
- g_free(txt);
- w->nameLabel->set_markup(txt = g_markup_printf_escaped(": %s", info.description));
+ w->nameLabel->set_markup(txt = g_markup_printf_escaped("%s", info.description));
g_free(txt);
w->setVolume(info.volume);
@@ -586,10 +585,9 @@ void MainWindow::updateSource(const pa_source_info &info) {
w->type = info.monitor_of_sink != PA_INVALID_INDEX ? SOURCE_MONITOR : (info.flags & PA_SOURCE_HARDWARE ? SOURCE_HARDWARE : SOURCE_VIRTUAL);
+ w->boldNameLabel->set_text("");
gchar *txt;
- w->boldNameLabel->set_markup(txt = g_markup_printf_escaped("<b>%s</b>", info.name));
- g_free(txt);
- w->nameLabel->set_markup(txt = g_markup_printf_escaped(": %s", info.description));
+ w->nameLabel->set_markup(txt = g_markup_printf_escaped("%s", info.description));
g_free(txt);
w->setVolume(info.volume);
@@ -623,7 +621,7 @@ void MainWindow::updateSinkInput(const pa_sink_input_info &info) {
w->nameLabel->set_markup(txt = g_markup_printf_escaped(": %s", info.name));
g_free(txt);
} else {
- w->boldNameLabel->set_label("");
+ w->boldNameLabel->set_text("");
w->nameLabel->set_label(info.name);
}