diff options
author | Colin Guthrie <cguthrie@mandriva.org> | 2010-04-20 20:22:38 +0100 |
---|---|---|
committer | Colin Guthrie <cguthrie@mandriva.org> | 2010-04-20 20:24:15 +0100 |
commit | 7de18201a38fc8bee15e6ef162fb35d242e6d00b (patch) | |
tree | ade4a61727a24665746c723deea90e3b3cfdba79 /src/pavucontrol.cc | |
parent | 84dc67b395dc5e8734c1245d839fb3058cf76ffe (diff) |
connection: Show a nice label when connecting to PA.
Diffstat (limited to 'src/pavucontrol.cc')
-rw-r--r-- | src/pavucontrol.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/pavucontrol.cc b/src/pavucontrol.cc index 1dd0147..0ad020d 100644 --- a/src/pavucontrol.cc +++ b/src/pavucontrol.cc @@ -61,8 +61,10 @@ static void dec_outstanding(MainWindow *w) { if (n_outstanding <= 0) return; - if (--n_outstanding <= 0) + if (--n_outstanding <= 0) { w->get_window()->set_cursor(); + w->setConnectionState(true); + } } void card_cb(pa_context *, const pa_card_info *i, int eol, void *userdata) { @@ -492,6 +494,8 @@ void context_state_callback(pa_context *c, void *userdata) { case PA_CONTEXT_FAILED: g_debug(_("Connection failed, attempting reconnect")); + w->setConnectionState(false); + w->removeAllWidgets(); w->updateDeviceVisibility(); pa_context_unref(context); @@ -536,7 +540,6 @@ gboolean connect_to_pulse(gpointer userdata) { return false; } - g_debug(_("Initialised and connected our context")); return false; } |