summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-08-11 23:56:57 +0000
committerLennart Poettering <lennart@poettering.net>2006-08-11 23:56:57 +0000
commit0f279b44acd5ab92ddad185435a5f8b313c2aeb3 (patch)
tree7af2138f03bb39adab48fa82d2777cddddafe24a
parent79d647f33ec529243a05a5c4533b9eb38449e470 (diff)
use the sink descripion instead of the name for the stream popup menu
git-svn-id: file:///home/lennart/svn/public/pavucontrol/trunk@44 c17c95f2-f111-0410-90bf-f30a9569010c
-rw-r--r--src/pavucontrol.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pavucontrol.cc b/src/pavucontrol.cc
index e2121b8..8cd1e62 100644
--- a/src/pavucontrol.cc
+++ b/src/pavucontrol.cc
@@ -107,7 +107,7 @@ public:
static SinkWidget* create();
SinkType type;
- Glib::ustring name;
+ Glib::ustring description;
virtual void onMuteToggleButton();
uint32_t index;
@@ -467,7 +467,7 @@ void SinkInputWidget::clearMenu() {
void SinkInputWidget::buildMenu() {
for (std::map<uint32_t, SinkWidget*>::iterator i = mainWindow->sinkWidgets.begin(); i != mainWindow->sinkWidgets.end(); ++i) {
SinkMenuItem *m;
- sinkMenuItems[i->second->index] = m = new SinkMenuItem(this, i->second->name.c_str(), i->second->index, i->second->index == sinkIndex);
+ sinkMenuItems[i->second->index] = m = new SinkMenuItem(this, i->second->description.c_str(), i->second->index, i->second->index == sinkIndex);
submenu.append(m->menuItem);
}
@@ -555,7 +555,7 @@ void MainWindow::updateSink(const pa_sink_info &info) {
}
w->type = info.flags & PA_SINK_HARDWARE ? SINK_HARDWARE : SINK_VIRTUAL;
- w->name = info.name;
+ w->description = info.description;
w->boldNameLabel->set_text("");
gchar *txt;