use fallback icon scheme for stream icons, too

This commit is contained in:
Lennart Poettering 2009-08-26 02:15:57 +02:00
parent d98588b665
commit b373c000ea
1 changed files with 39 additions and 38 deletions

View File

@ -45,6 +45,7 @@ struct profile_prio_compare {
return lhs.priority > rhs.priority; return lhs.priority > rhs.priority;
} }
}; };
struct sink_port_prio_compare { struct sink_port_prio_compare {
bool operator() (const pa_sink_port_info& lhs, const pa_sink_port_info& rhs) const { bool operator() (const pa_sink_port_info& lhs, const pa_sink_port_info& rhs) const {
@ -54,6 +55,7 @@ struct sink_port_prio_compare {
return lhs.priority > rhs.priority; return lhs.priority > rhs.priority;
} }
}; };
struct source_port_prio_compare { struct source_port_prio_compare {
bool operator() (const pa_source_port_info& lhs, const pa_source_port_info& rhs) const { bool operator() (const pa_source_port_info& lhs, const pa_source_port_info& rhs) const {
@ -64,7 +66,6 @@ struct source_port_prio_compare {
} }
}; };
MainWindow::MainWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& x) : MainWindow::MainWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& x) :
Gtk::Window(cobject), Gtk::Window(cobject),
showSinkInputType(SINK_INPUT_CLIENT), showSinkInputType(SINK_INPUT_CLIENT),
@ -453,7 +454,7 @@ void MainWindow::setIconFromProplist(Gtk::Image *icon, pa_proplist *l, const cha
finish: finish:
icon->set_from_icon_name(t, Gtk::ICON_SIZE_SMALL_TOOLBAR); set_icon_name_fallback(icon, t, Gtk::ICON_SIZE_SMALL_TOOLBAR);
} }
void MainWindow::updateSinkInput(const pa_sink_input_info &info) { void MainWindow::updateSinkInput(const pa_sink_input_info &info) {