diff --git a/src/ui/view/view.cpp b/src/ui/view/view.cpp
index 07bb6d2c134427801da9b26c7db82f5bd3c1aa0e..f05e024d19fd871971114fafe61deb5d10972782 100644 (file)
--- a/src/ui/view/view.cpp
+++ b/src/ui/view/view.cpp
-#define __SP_VIEW_C__
-
/** \file
* View implementation
*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Ralf Stephan <ralf@ark.in-berlin.de>
+ * Jon A. Cruz <jon@joncruz.org>
*
* Copyright (C) 2001-2002 Lauris Kaplinski
* Copyright (C) 2001 Ximian, Inc.
*
* \param doc The new document to connect the view to.
*/
-void View::setDocument(Document *doc) {
+void View::setDocument(SPDocument *doc) {
g_return_if_fail(doc != NULL);
if (_doc) {
_doc->connectURISet(sigc::bind(sigc::ptr_fun(&_onDocumentURISet), this));
_document_resized_connection =
_doc->connectResized(sigc::bind(sigc::ptr_fun(&_onDocumentResized), this));
- _document_uri_set_signal.emit (SP_DOCUMENT_URI(_doc));
+ _document_uri_set_signal.emit( _doc->getURI() );
}
}}}