Logo Search packages:      
Sourcecode: inkscape version File versions

void sp_svg_view_widget_set_resize ( SPSVGSPViewWidget vw,
bool  resize,
gdouble  width,
gdouble  height 
)

Flags the SPSVGSPViewWidget to have its size renegotiated with Gtk.

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

References SPSVGSPViewWidget::maxheight, SPSVGSPViewWidget::maxwidth, and SPSVGSPViewWidget::resize.

Referenced by SPSVGSPViewWidget::setResize().

{
      g_return_if_fail (vw != NULL);

      g_return_if_fail (SP_IS_SVG_VIEW_WIDGET (vw));
      g_return_if_fail (!resize || (width > 0.0));
      g_return_if_fail (!resize || (height > 0.0));

      vw->resize = resize;
      vw->maxwidth = width;
      vw->maxheight = height;

      if (resize) {
            gtk_widget_queue_resize (GTK_WIDGET (vw));
      }
}


Generated by  Doxygen 1.6.0   Back to index