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
This commit is contained in:
Lennart Poettering 2006-08-11 23:56:57 +00:00
parent 79d647f33e
commit 0f279b44ac
1 changed files with 3 additions and 3 deletions

View File

@ -107,7 +107,7 @@ public:
static SinkWidget* create(); static SinkWidget* create();
SinkType type; SinkType type;
Glib::ustring name; Glib::ustring description;
virtual void onMuteToggleButton(); virtual void onMuteToggleButton();
uint32_t index; uint32_t index;
@ -467,7 +467,7 @@ void SinkInputWidget::clearMenu() {
void SinkInputWidget::buildMenu() { void SinkInputWidget::buildMenu() {
for (std::map<uint32_t, SinkWidget*>::iterator i = mainWindow->sinkWidgets.begin(); i != mainWindow->sinkWidgets.end(); ++i) { for (std::map<uint32_t, SinkWidget*>::iterator i = mainWindow->sinkWidgets.begin(); i != mainWindow->sinkWidgets.end(); ++i) {
SinkMenuItem *m; 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); 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->type = info.flags & PA_SINK_HARDWARE ? SINK_HARDWARE : SINK_VIRTUAL;
w->name = info.name; w->description = info.description;
w->boldNameLabel->set_text(""); w->boldNameLabel->set_text("");
gchar *txt; gchar *txt;