Changeset 4d4c20e5237e5e5c8b93d8e01d2b1e2d769c2dbb

Show
Ignore:
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:
4 modified

Legend:

Unmodified
Added
Removed
  • inc/buffer_wrapper.hpp

    rb761034 r4d4c20e  
    265265 
    266266protected: 
    267         ClientBuffer(); 
    268267}; 
    269268 
  • inc/joinprogressdialog.hpp

    r8140232 r4d4c20e  
    6767        Gdk::Color m_color; 
    6868 
    69         Glib::ustring m_error; 
    70  
    7169        std::auto_ptr<obby::client_buffer> m_buffer; 
    7270}; 
  • src/buffer_wrapper.cpp

    r0e98f69 r4d4c20e  
    197197} 
    198198 
    199 Gobby::ClientBuffer::ClientBuffer() 
    200 { 
    201 } 
    202  
    203199Gobby::ClientBuffer::ClientBuffer(Gtk::Window& window, 
    204200                                  const Glib::ustring& hostname, 
  • src/joinprogressdialog.cpp

    r4d53ec2 r4d4c20e  
    4949void Gobby::JoinProgressDialog::on_thread() 
    5050{ 
    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 
     53void Gobby::JoinProgressDialog::on_done() 
     54{ 
     55        // Call base function joining the thread 
     56        ProgressDialog::on_done(); 
    5557 
    5658        try 
     
    6769        catch(net6::error& e) 
    6870        { 
    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 
    8574                response(Gtk::RESPONSE_CANCEL); 
    86                 // Ignore rest of function 
    8775                return; 
    8876        }