Logo Search packages:      
Sourcecode: aisleriot version File versions  Download package

ArSvg* ar_svg_new_from_filename_sync ( const char *  filename,
GCancellable *  cancellable,
GError **  error 
)

ar_svg_new_from_filename: : the path to the SVG file : (allow-none): a GCancellable, or NULL : (allow-none): a location to store a GError, or NULL

Creates a new ArSvg and synchronously loads its contents from .

Returns: (allow-none): a new ArSvg, or NULL on error with filled in

Definition at line 317 of file ar-svg.c.

{
  GFile *file;
  ArSvg *svg;

  g_return_val_if_fail (filename != NULL, NULL);

  file = g_file_new_for_path (filename);
  svg = ar_svg_new_from_gfile_sync (file, cancellable, error);
  g_object_unref (file);

  return svg;
}

Generated by  Doxygen 1.6.0   Back to index