Changeset e608789f1c38925d706e1b53f791db7997b99c22
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
reaf8ea6
|
re608789
|
|
| 197 | 197 | return 0; |
| 198 | 198 | |
| 199 | | return doc->get_unsynced_changes_count(); |
| | 199 | // Return amount reported by document otherwise |
| | 200 | return doc->unsynced_count(); |
| 200 | 201 | } |
| 201 | 202 | |
-
|
r3033eda
|
re608789
|
|
| 359 | 359 | void Gobby::Header::obby_document_remove(obby::document& document) |
| 360 | 360 | { |
| 361 | | if(document.get_buffer().document_size() == 1) |
| | 361 | if(document.get_buffer().document_count() == 1) |
| 362 | 362 | { |
| 363 | 363 | // The document which is currently removed is the only |
-
|
r6339f85
|
re608789
|
|
| 427 | 427 | for(; iter != m_buffer->document_end(); ++ iter) |
| 428 | 428 | 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); |
| 430 | 432 | } |
| 431 | 433 | |