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:
parent
79d647f33e
commit
0f279b44ac
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue