Code

Fix change in revision 9947 to be consistent with rest of the codebase.
[inkscape.git] / src / svg-view-widget.cpp
index 5c33075c9b24fc0502857676b0a1b5dd65f2ce65..d2a31966afab6916bffb915ed373459e80094b6e 100644 (file)
@@ -1,11 +1,10 @@
-#define __SP_SVG_VIEW_C__
-
 /** \file
  * Functions and callbacks for generic SVG view and widget
  *
  * Authors:
  *   Lauris Kaplinski <lauris@kaplinski.com>
  *   Ralf Stephan <ralf@ark.in-berlin.de>
+ *   Abhishek Sharma
  *
  * Copyright (C) 2001-2002 Lauris Kaplinski
  * Copyright (C) 2001 Ximian, Inc.
@@ -149,8 +148,8 @@ sp_svg_view_widget_size_request (GtkWidget *widget, GtkRequisition *req)
                gdouble width, height;
 
                svgv = static_cast<SPSVGView*> (v);
-               width = sp_document_width (v->doc()) * svgv->_hscale;
-               height = sp_document_height (v->doc()) * svgv->_vscale;
+               width = (v->doc())->getWidth () * svgv->_hscale;
+               height = (v->doc())->getHeight () * svgv->_vscale;
 
                if (width <= vw->maxwidth) {
                        hpol = GTK_POLICY_NEVER;
@@ -205,7 +204,7 @@ sp_svg_view_widget_view_resized (SPViewWidget *vw, Inkscape::UI::View::View */*v
  * Constructs new SPSVGSPViewWidget object and returns pointer to it.
  */
 GtkWidget *
-sp_svg_view_widget_new (Document *doc)
+sp_svg_view_widget_new (SPDocument *doc)
 {
        GtkWidget *widget;