diff options
author | David Robillard <d@drobilla.net> | 2007-05-01 06:05:16 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-05-01 06:05:16 +0000 |
commit | 2772d11a284f199342ef86e9169865968577a17c (patch) | |
tree | d0fdfafdf2a8d273d8de3a2898e8981071a91df8 /src/progs | |
parent | e19f2f14e830b016c27fc1369a34055a1764a0f5 (diff) | |
download | ingen-2772d11a284f199342ef86e9169865968577a17c.tar.gz ingen-2772d11a284f199342ef86e9169865968577a17c.tar.bz2 ingen-2772d11a284f199342ef86e9169865968577a17c.zip |
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
Diffstat (limited to 'src/progs')
-rw-r--r-- | src/progs/ingenuity/ConnectWindow.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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; } |