Changeset e608789f1c38925d706e1b53f791db7997b99c22

Show
Ignore:
Timestamp:
01/06/07 23:36:15 (6 years ago)
Author:
Philipp Kern <phil@…>
Parents:
6339f85f35eb76692e0d2cad2682fd9a8c92187e
Children:
f5456c54572e967281cbc0c449855854cd046885
git-committer:
Philipp Kern <phil@0x539.de> / 2007-01-06T22:36:15Z+0000
Message:

[project @ Fixed some errors caused by recent libobby API changes]

Original author: Armin Burgmeier <armin@…>
Date: 2005-06-01 16:36:06+00:00

Location:
src
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • src/document.cpp

    reaf8ea6 re608789  
    197197                return 0; 
    198198 
    199         return doc->get_unsynced_changes_count(); 
     199        // Return amount reported by document otherwise 
     200        return doc->unsynced_count(); 
    200201} 
    201202 
  • src/header.cpp

    r3033eda re608789  
    359359void Gobby::Header::obby_document_remove(obby::document& document) 
    360360{ 
    361         if(document.get_buffer().document_size() == 1) 
     361        if(document.get_buffer().document_count() == 1) 
    362362        { 
    363363                // The document which is currently removed is the only 
  • src/window.cpp

    r6339f85 re608789  
    427427        for(; iter != m_buffer->document_end(); ++ iter) 
    428428                on_obby_document_insert(*iter); 
    429         m_folder.set_current_page(m_buffer->document_size() - 1); 
     429 
     430        // Set last page as active one because it is currently shown anyway. 
     431        m_folder.set_current_page(m_buffer->document_count() - 1); 
    430432} 
    431433