Commit abebcde6 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

deal with SVG API change. This is a compile-time check and thus somewhat

2005-08-26  Sven Neumann  <sven@gimp.org>

	* plug-ins/common/svg.c: deal with SVG API change. This is a
	compile-time check and thus somewhat ugly because it requires a
	recompile of the plug-in when updating librsvg. Fixes bug #314400.
parent cd160b3d
2005-08-26 Sven Neumann <sven@gimp.org>
* plug-ins/common/svg.c: deal with SVG API change. This is a
compile-time check and thus somewhat ugly because it requires a
recompile of the plug-in when updating librsvg. Fixes bug #314400.
2005-08-26 Michael Natterer <mitch@gimp.org>
* app/dialogs/about-dialog.c (about_dialog_add_logo): move the
......
......@@ -28,6 +28,7 @@
#include <string.h>
#include <librsvg/rsvg.h>
#include <librsvg/librsvg-features.h> /* for version check */
#include "libgimp/gimp.h"
#include "libgimp/gimpui.h"
......@@ -437,7 +438,12 @@ load_rsvg_pixbuf (const gchar *filename,
handle = rsvg_handle_new ();
#if (LIBRSVG_MAJOR_VERSION == 2 && LIBRSVG_MINOR_VERSION >= 11)
rsvg_handle_set_dpi (handle, vals->resolution, vals->resolution);
#else
rsvg_handle_set_dpi_x_y (handle, vals->resolution, vals->resolution);
#endif
rsvg_handle_set_size_callback (handle, load_set_size_callback, vals, NULL);
while (success && status != G_IO_STATUS_EOF)
......@@ -534,7 +540,12 @@ load_rsvg_size (const gchar *filename,
handle = rsvg_handle_new ();
#if (LIBRSVG_MAJOR_VERSION == 2 && LIBRSVG_MINOR_VERSION >= 11)
rsvg_handle_set_dpi (handle, vals->resolution, vals->resolution);
#else
rsvg_handle_set_dpi_x_y (handle, vals->resolution, vals->resolution);
#endif
rsvg_handle_set_size_callback (handle, load_get_size_callback, vals, NULL);
while (success && status != G_IO_STATUS_EOF && vals->resolution > 0.0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment