diff options
author | Colin Guthrie | 2009-06-13 20:15:02 +0200 |
---|---|---|
committer | Colin Guthrie | 2009-06-17 09:54:14 +0200 |
commit | 02b316fcba8a112e528a0bddfcb93cf6f3179168 (patch) | |
tree | 96471135e9d83af7ebb275d77e71c9d0c0b6033d /src/mainwindow.h | |
parent | Create the event role widget early so that it's always top of the list. (diff) | |
download | pavucontrol-slx-02b316fcba8a112e528a0bddfcb93cf6f3179168.tar.gz pavucontrol-slx-02b316fcba8a112e528a0bddfcb93cf6f3179168.tar.xz pavucontrol-slx-02b316fcba8a112e528a0bddfcb93cf6f3179168.zip |
More changes in the UI to try and make things neater.
This abandons the combo box approach an instead partially reverts to the popup.
We now display a suffix after the stream title saying " on <device>" or " from <device>"
where the <device> part looks like a hyperlink and, when clicked, shows the popup to change the device.
If there is only one device available, we suppress the whole thing and thus avoid confusion.
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r-- | src/mainwindow.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h index 48fcc76..a9f0f64 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -91,31 +91,8 @@ public: Glib::ustring defaultSinkName, defaultSourceName; - class DeviceColumns : public Gtk::TreeModel::ColumnRecord - { - public: - - DeviceColumns() - { add(index); add(name); } - - Gtk::TreeModelColumn<uint32_t> index; - Gtk::TreeModelColumn<Glib::ustring> name; - }; - - DeviceColumns deviceColumns; - - Glib::RefPtr<Gtk::ListStore> sinkTree; - std::map<uint32_t, uint32_t> sinkTreeIndexes; - - Glib::RefPtr<Gtk::ListStore> sourceTree; - std::map<uint32_t, uint32_t> sourceTreeIndexes; - protected: virtual void on_realize(); - -private: - void rebuildSinkCombo(); - void rebuildSourceCombo(); }; |