Changeset 4d4c20e5237e5e5c8b93d8e01d2b1e2d769c2dbb
- Timestamp:
- 01/06/07 23:41:13 (6 years ago)
- Author:
- Philipp Kern <phil@…>
- Parents:
- 3515287dcd5e186be189d26efb988e2f38d4df28
- Children:
- e37f9cc2be176746e30e6ec2b2c377d0173e6b89
- git-committer:
- Philipp Kern <phil@0x539.de> / 2007-01-06T22:41:13Z+0000
- Message:
-
[project @ Connect synchoniously to the server, would cause too much trouble otherwise]
Original author: Armin Burgmeier <armin@…>
Date: 2005-07-20 19:04:42+00:00
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
-
|
r8140232
|
r4d4c20e
|
|
| 67 | 67 | Gdk::Color m_color; |
| 68 | 68 | |
| 69 | | Glib::ustring m_error; |
| 70 | | |
| 71 | 69 | std::auto_ptr<obby::client_buffer> m_buffer; |
| 72 | 70 | }; |
-
|
r0e98f69
|
r4d4c20e
|
|
| 197 | 197 | } |
| 198 | 198 | |
| 199 | | Gobby::ClientBuffer::ClientBuffer() |
| 200 | | { |
| 201 | | } |
| 202 | | |
| 203 | 199 | Gobby::ClientBuffer::ClientBuffer(Gtk::Window& window, |
| 204 | 200 | const Glib::ustring& hostname, |
-
|
r4d53ec2
|
r4d4c20e
|
|
| 49 | 49 | void Gobby::JoinProgressDialog::on_thread() |
| 50 | 50 | { |
| 51 | | // Get color components |
| 52 | | unsigned int red = m_color.get_red() * 255 / 65535; |
| 53 | | unsigned int green = m_color.get_green() * 255 / 65535; |
| 54 | | unsigned int blue = m_color.get_blue() * 255 / 65535; |
| | 51 | } |
| | 52 | |
| | 53 | void Gobby::JoinProgressDialog::on_done() |
| | 54 | { |
| | 55 | // Call base function joining the thread |
| | 56 | ProgressDialog::on_done(); |
| 55 | 57 | |
| 56 | 58 | try |
| … |
… |
|
| 67 | 69 | catch(net6::error& e) |
| 68 | 70 | { |
| 69 | | // Store error, if one occured |
| 70 | | m_error = e.what(); |
| 71 | | } |
| 72 | | } |
| 73 | | |
| 74 | | void Gobby::JoinProgressDialog::on_done() |
| 75 | | { |
| 76 | | // Call base function joining the thread |
| 77 | | ProgressDialog::on_done(); |
| 78 | | |
| 79 | | // Error? |
| 80 | | if(!m_error.empty() ) |
| 81 | | { |
| 82 | | // Show it up |
| 83 | | display_error(m_error); |
| 84 | | // Close dialog |
| | 71 | // Display error |
| | 72 | display_error(e.what() ); |
| | 73 | // Return |
| 85 | 74 | response(Gtk::RESPONSE_CANCEL); |
| 86 | | // Ignore rest of function |
| 87 | 75 | return; |
| 88 | 76 | } |