Logo Search packages:      
Sourcecode: inkscape version File versions

GtkWidget* sp_svg_view_widget_new ( SPDocument doc  ) 

Constructs new SPSVGSPViewWidget object and returns pointer to it.

Definition at line 205 of file svg-view-widget.cpp.

{
      GtkWidget *widget;

      g_return_val_if_fail (doc != NULL, NULL);

      widget = (GtkWidget*)gtk_type_new (SP_TYPE_SVG_VIEW_WIDGET);

      reinterpret_cast<SPSVGView*>(SP_VIEW_WIDGET_VIEW (widget))->setDocument (doc);

      return widget;
}


Generated by  Doxygen 1.6.0   Back to index