Changeset 7e4bcbf2dcc7a231b622bca6a9eff970dbdb2f01

Show
Ignore:
Timestamp:
01/06/07 23:52:54 (6 years ago)
Author:
Philipp Kern <phil@…>
Parents:
02f4d24f066bb6163d7e9b6151e181809f89e59e
Children:
b2d3d8e4b4d1e6c62e91c812410f4aa345690d3c
git-committer:
Philipp Kern <phil@0x539.de> / 2007-01-06T22:52:54Z+0000
Message:

[project @ Removed empty paned from window]

Original author: Armin Burgmeier <armin@…>
Date: 2005-11-12 13:20:15+00:00

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • inc/window.hpp

    r34c0230 r7e4bcbf  
    128128        // GUI 
    129129        Gtk::VBox m_mainbox; 
    130  
    131130        Gtk::VPaned m_mainpaned; 
    132         Gtk::HPaned m_subpaned; 
    133131 
    134132        Gtk::Frame m_frame_chat; 
    135         Gtk::Frame m_frame_list; 
    136133        Gtk::Frame m_frame_text; 
    137134 
    138135        Header m_header; 
     136        UserList m_userlist; 
    139137 
    140138        Folder m_folder; 
    141         UserList m_userlist; 
    142139        Chat m_chat; 
    143140        StatusBar m_statusbar; 
  • src/window.cpp

    r02f4d24 r7e4bcbf  
    5656#endif 
    5757   m_header(), 
     58   m_userlist(*this, m_header), 
    5859   m_folder(m_header, m_preferences), 
    59    m_userlist(*this, m_header), 
    6060   m_statusbar(m_header, m_folder) 
    6161{ 
     
    9393        m_header.action_view_preferences->signal_activate().connect( 
    9494                sigc::mem_fun(*this, &Window::on_view_preferences) ); 
    95         /*m_header.view_language_event().connect( 
    96                 sigc::mem_fun(*this, &Window::on_view_language) );*/ 
    9795 
    9896        m_header.action_help_about->signal_activate().connect( 
     
    116114 
    117115        m_frame_chat.set_shadow_type(Gtk::SHADOW_IN); 
    118         m_frame_list.set_shadow_type(Gtk::SHADOW_IN); 
    119116        m_frame_text.set_shadow_type(Gtk::SHADOW_IN); 
    120117 
    121118        m_frame_chat.add(m_chat); 
    122         //m_frame_list.add(m_userlist); 
    123119        m_frame_text.add(m_folder); 
    124120 
    125         m_subpaned.pack1(m_frame_text, true, false); 
    126         m_subpaned.pack2(m_frame_list, true, false); 
    127  
    128121        m_mainpaned.set_border_width(10); 
    129         m_mainpaned.pack1(m_subpaned, true, false); 
     122        m_mainpaned.pack1(m_frame_text, true, false); 
    130123        m_mainpaned.pack2(m_frame_chat, true, false); 
    131124 
     
    173166        // Initialize paned sizes. This cannot be done in the constructor 
    174167        // because the widget's sizes are not known. 
    175         int submin = m_subpaned.property_min_position(); 
    176         int submax = m_subpaned.property_max_position(); 
    177168        int mainmin = m_mainpaned.property_min_position(); 
    178169        int mainmax = m_mainpaned.property_max_position(); 
    179170 
    180         m_subpaned.set_position(submin + (submax - submin) * 4 / 5); 
    181171        m_mainpaned.set_position(mainmin + (mainmax - mainmin) * 3 / 4); 
    182172} 
     
    198188        m_buffer->document_remove_event().connect( 
    199189                sigc::mem_fun(*this, &Window::on_obby_document_remove) ); 
    200  
    201         /*m_buffer->message_event().connect( 
    202                 sigc::mem_fun(*this, &Window::on_obby_chat) ); 
    203         m_buffer->server_message_event().connect( 
    204                 sigc::mem_fun(*this, &Window::on_obby_server_chat) );*/ 
    205190 
    206191        // Accept drag and drop of files into the gobby window 
     
    774759} 
    775760 
    776 #if 0 
    777 void Gobby::Window::on_chat(const Glib::ustring& message) 
    778 { 
    779         // Send chat message via obby 
    780         m_buffer->send_message(message); 
    781 } 
    782 #endif 
    783  
    784761/* Drag and Drop */ 
    785762void Gobby::Window::on_drag_data_received( 
     
    825802} 
    826803 
    827 #if 0 
    828 void Gobby::Window::on_obby_chat(const obby::user& user, 
    829                                  const Glib::ustring& message) 
    830 { 
    831         // Got chat message 
    832         m_chat.obby_message(user, message); 
    833 } 
    834  
    835 void Gobby::Window::on_obby_server_chat(const Glib::ustring& message) 
    836 { 
    837         // Got server chat message 
    838         m_chat.obby_server_message(message); 
    839 } 
    840 #endif 
    841  
    842804void Gobby::Window::on_obby_user_join(const obby::user& user) 
    843805{ 
     
    899861                m_local_file_path.clear(); 
    900862        } 
    901  
    902 #if 0 
    903         doc->get_document().signal_drag_data_received().connect( 
    904                 sigc::mem_fun(*this, &Window::on_drag_data_received) ); 
    905 #endif 
    906863} 
    907864