summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jabber_whiteboard/session-file-player.cpp4
-rw-r--r--src/jabber_whiteboard/session-manager.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/jabber_whiteboard/session-file-player.cpp b/src/jabber_whiteboard/session-file-player.cpp
index 538d0bc91..cc4842e5b 100644
--- a/src/jabber_whiteboard/session-file-player.cpp
+++ b/src/jabber_whiteboard/session-file-player.cpp
@@ -125,7 +125,7 @@ SessionFilePlayer::step(unsigned short dir)
this->_visited.push_front(std::make_pair< gint64, gint64 >(this->_current, this->_curmsg.bytes()));
this->_outputMessageToWidget();
this->_sm->receiveChange(this->_curmsg);
- sp_document_done(SP_DT_DOCUMENT(this->_sm->desktop()));
+ sp_document_done(sp_desktop_document(this->_sm->desktop()));
this->_curdir = FORWARD;
return true;
}
@@ -141,7 +141,7 @@ SessionFilePlayer::step(unsigned short dir)
this->_next = last.first + last.second;
this->_sf->nextMessageFrom(this->_current, this->_curmsg);
this->_outputMessageToWidget();
- sp_document_undo(SP_DT_DOCUMENT(this->_sm->desktop()));
+ sp_document_undo(sp_desktop_document(this->_sm->desktop()));
this->_curdir = BACKWARD;
return true;
}
diff --git a/src/jabber_whiteboard/session-manager.cpp b/src/jabber_whiteboard/session-manager.cpp
index a52a7a878..5b07e2c13 100644
--- a/src/jabber_whiteboard/session-manager.cpp
+++ b/src/jabber_whiteboard/session-manager.cpp
@@ -173,8 +173,8 @@ SessionManager::setDesktop(::SPDesktop* desktop)
if (this->_myDoc != NULL) {
Inkscape::GC::release(this->_myDoc);
}
- if (SP_DT_DOCUMENT(desktop) != NULL) {
- this->_myDoc = SP_DT_DOCUMENT(desktop);
+ if (sp_desktop_document(desktop) != NULL) {
+ this->_myDoc = sp_desktop_document(desktop);
Inkscape::GC::anchor(this->_myDoc);
}
}