Logo Search packages:      
Sourcecode: inkscape version File versions

static void sp_svg_view_widget_view_resized ( SPViewWidget vw,
Inkscape::UI::View::View ,
gdouble  width,
gdouble  height 
) [static]

Callback connected with view_resized signal.

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

References SPSVGSPViewWidget::canvas, and SPSVGSPViewWidget::resize.

Referenced by sp_svg_view_widget_class_init().

{
      SPSVGSPViewWidget *svgvw = SP_SVG_VIEW_WIDGET (vw);

      if (svgvw->resize) {
            gtk_widget_set_size_request (svgvw->canvas, (int)width, (int)height);
            gtk_widget_queue_resize (GTK_WIDGET (vw));
      }
}


Generated by  Doxygen 1.6.0   Back to index