Show
Ignore:
Timestamp:
01/06/07 23:43:18 (6 years ago)
Author:
Philipp Kern <phil@…>
Parents:
42eed7fcd5c2709d714983be46e3a133cc732b73
Children:
63303a926cadfea5c64181f2b1c8031c7044a23b
git-committer:
Philipp Kern <phil@0x539.de> / 2007-01-06T22:43:18Z+0000
Message:

[project @ Adjusted the Zeroconf usage]

Original author: Philipp Kern <phil@…>
Date: 2005-07-23 22:40:29+00:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/window.cpp

    r42eed7f r1d335d3  
    4949   m_preferences(m_config), m_buffer(NULL), 
    5050#ifdef WITH_HOWL 
    51    m_zeroconf(NULL), 
     51   m_zeroconf(), 
    5252#endif 
    5353   m_folder(m_preferences), m_header(m_folder), m_statusbar(m_folder) 
     
    220220        m_buffer.reset(); 
    221221#ifdef WITH_HOWL 
    222         delete m_zeroconf; 
    223         m_zeroconf = NULL; 
     222        m_zeroconf.unpublish_all(); 
    224223#endif 
    225224} 
     
    253252#ifdef WITH_HOWL 
    254253                        // Publish the newly created session via ZeroConf 
    255                         m_zeroconf = new obby::zeroconf(); 
    256                         m_zeroconf->publish(name, port); 
     254                        m_zeroconf.publish(name, port); 
    257255#endif 
    258256 
     
    266264void Gobby::Window::on_session_join() 
    267265{ 
     266#ifndef WITH_HOWL 
    268267        JoinDialog dlg(*this, m_config); 
     268#else 
     269        JoinDialog dlg(*this, m_config, &m_zeroconf); 
     270#endif 
     271 
    269272        if(dlg.run() == Gtk::RESPONSE_OK) 
    270273        {