sink/sourcewidget: Move the index and card_index to the devicewidget
This is a minor cleanup that moves the index of the sink/source and the card_index from the sink/source widget to the device widget.
This commit is contained in:
parent
1a23cdfe6d
commit
8af6520c60
|
@ -39,6 +39,7 @@ public:
|
||||||
|
|
||||||
Glib::ustring name;
|
Glib::ustring name;
|
||||||
Glib::ustring description;
|
Glib::ustring description;
|
||||||
|
uint32_t index, card_index;
|
||||||
|
|
||||||
Gtk::ToggleButton *lockToggleButton, *muteToggleButton, *defaultToggleButton;
|
Gtk::ToggleButton *lockToggleButton, *muteToggleButton, *defaultToggleButton;
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ public:
|
||||||
static SinkWidget* create(MainWindow* mainWindow);
|
static SinkWidget* create(MainWindow* mainWindow);
|
||||||
|
|
||||||
SinkType type;
|
SinkType type;
|
||||||
uint32_t index, monitor_index, card_index;
|
uint32_t monitor_index;
|
||||||
bool can_decibel;
|
bool can_decibel;
|
||||||
|
|
||||||
#if HAVE_EXT_DEVICE_RESTORE_API
|
#if HAVE_EXT_DEVICE_RESTORE_API
|
||||||
|
|
|
@ -31,7 +31,6 @@ public:
|
||||||
static SourceWidget* create(MainWindow* mainWindow);
|
static SourceWidget* create(MainWindow* mainWindow);
|
||||||
|
|
||||||
SourceType type;
|
SourceType type;
|
||||||
uint32_t index, card_index;
|
|
||||||
bool can_decibel;
|
bool can_decibel;
|
||||||
|
|
||||||
virtual void onMuteToggleButton();
|
virtual void onMuteToggleButton();
|
||||||
|
|
Loading…
Reference in New Issue