From 2772d11a284f199342ef86e9169865968577a17c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 1 May 2007 06:05:16 +0000 Subject: Morph disconnect button into cancel while attempting a connection (could probably use a better design for this dialog). git-svn-id: http://svn.drobilla.net/lad/ingen@489 a436a847-0d15-0410-975c-d299462d15a1 --- src/progs/ingenuity/ConnectWindow.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/progs') diff --git a/src/progs/ingenuity/ConnectWindow.cpp b/src/progs/ingenuity/ConnectWindow.cpp index 9fe45dfa..6e5b6c67 100644 --- a/src/progs/ingenuity/ConnectWindow.cpp +++ b/src/progs/ingenuity/ConnectWindow.cpp @@ -145,6 +145,7 @@ ConnectWindow::connect() assert(!App::instance().client()); _connect_button->set_sensitive(false); + _disconnect_button->set_label("gtk-cancel"); _disconnect_button->set_sensitive(true); _connect_stage = 0; @@ -391,6 +392,7 @@ ConnectWindow::gtk_callback() _progress_bar->set_fraction(1.0); _url_entry->set_sensitive(false); _connect_button->set_sensitive(false); + _disconnect_button->set_label("gtk-disconnect"); _disconnect_button->set_sensitive(true); _port_spinbutton->set_sensitive(false); _launch_radio->set_sensitive(false); @@ -407,8 +409,9 @@ ConnectWindow::gtk_callback() _progress_bar->set_fraction(0.0); _connect_button->set_sensitive(true); _disconnect_button->set_sensitive(false); - _connect_stage = 0; // set ourselves up for next time (if there is one) - return false; // deregister this callback + _disconnect_button->set_label("gtk-disconnect"); + _progress_label->set_text(string("Disconnected")); + return false; } else { return true; } -- cgit v1.2.1