summaryrefslogtreecommitdiffstats
path: root/src/mainwindow.h
diff options
context:
space:
mode:
authorColin Guthrie2010-04-20 21:22:38 +0200
committerColin Guthrie2010-04-20 21:24:15 +0200
commit7de18201a38fc8bee15e6ef162fb35d242e6d00b (patch)
treeade4a61727a24665746c723deea90e3b3cfdba79 /src/mainwindow.h
parentmain: Automatically reconnect to PA upon disconnection (diff)
downloadpavucontrol-slx-7de18201a38fc8bee15e6ef162fb35d242e6d00b.tar.gz
pavucontrol-slx-7de18201a38fc8bee15e6ef162fb35d242e6d00b.tar.xz
pavucontrol-slx-7de18201a38fc8bee15e6ef162fb35d242e6d00b.zip
connection: Show a nice label when connecting to PA.
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 92db272..1d2f4b0 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -59,7 +59,7 @@ public:
Gtk::Notebook *notebook;
Gtk::VBox *streamsVBox, *recsVBox, *sinksVBox, *sourcesVBox, *cardsVBox;
- Gtk::Label *noStreamsLabel, *noRecsLabel, *noSinksLabel, *noSourcesLabel, *noCardsLabel;
+ Gtk::Label *noStreamsLabel, *noRecsLabel, *noSinksLabel, *noSourcesLabel, *noCardsLabel, *connectingLabel;
Gtk::ComboBox *sinkInputTypeComboBox, *sourceOutputTypeComboBox, *sinkTypeComboBox, *sourceTypeComboBox;
std::map<uint32_t, CardWidget*> cardWidgets;
@@ -79,6 +79,7 @@ public:
virtual void onSinkTypeComboBoxChanged();
virtual void onSourceTypeComboBoxChanged();
+ void setConnectionState(gboolean connected);
void updateDeviceVisibility();
void reallyUpdateDeviceVisibility();
void createMonitorStreamForSource(uint32_t source_idx);
@@ -97,6 +98,9 @@ public:
protected:
virtual void on_realize();
+
+private:
+ gboolean m_connected;
};