summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpoljar (Damir Jelić) <poljarinho@gmail.com>2012-07-26 15:42:10 +0200
committerTanu Kaskinen <tanuk@iki.fi>2012-07-27 08:56:02 +0300
commit8af6520c602afd75418ac5b33f75f40a4706dcb5 (patch)
treebe7d988f5ec3de874dd36f3c748fb0fe13ca5338
parent1a23cdfe6d6fe8b17f5ecdb006c0f4f3cff39282 (diff)
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.
-rw-r--r--src/devicewidget.h1
-rw-r--r--src/sinkwidget.h2
-rw-r--r--src/sourcewidget.h1
3 files changed, 2 insertions, 2 deletions
diff --git a/src/devicewidget.h b/src/devicewidget.h
index 2ad5d1e..94f14e6 100644
--- a/src/devicewidget.h
+++ b/src/devicewidget.h
@@ -39,6 +39,7 @@ public:
Glib::ustring name;
Glib::ustring description;
+ uint32_t index, card_index;
Gtk::ToggleButton *lockToggleButton, *muteToggleButton, *defaultToggleButton;
diff --git a/src/sinkwidget.h b/src/sinkwidget.h
index 4b79879..a2fbab9 100644
--- a/src/sinkwidget.h
+++ b/src/sinkwidget.h
@@ -41,7 +41,7 @@ public:
static SinkWidget* create(MainWindow* mainWindow);
SinkType type;
- uint32_t index, monitor_index, card_index;
+ uint32_t monitor_index;
bool can_decibel;
#if HAVE_EXT_DEVICE_RESTORE_API
diff --git a/src/sourcewidget.h b/src/sourcewidget.h
index ebd92e3..9b7809c 100644
--- a/src/sourcewidget.h
+++ b/src/sourcewidget.h
@@ -31,7 +31,6 @@ public:
static SourceWidget* create(MainWindow* mainWindow);
SourceType type;
- uint32_t index, card_index;
bool can_decibel;
virtual void onMuteToggleButton();