Commit fff14f63 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

Poppler 0.4 changes the API of poppler_page_render_to_pixbuf():

2005-08-19  Michael Natterer  <mitch@gimp.org>

	Poppler 0.4 changes the API of poppler_page_render_to_pixbuf():

	* configure.in: define HAVE_POPPLER_0_4 if it is available.

	* plug-ins/common/poppler.c: added some #ifdefs to compile with
	both the new and old version. Can be removed in some weeks
	propably.
parent c0b1fcb9
2005-08-19 Michael Natterer <mitch@gimp.org>
Poppler 0.4 changes the API of poppler_page_render_to_pixbuf():
* configure.in: define HAVE_POPPLER_0_4 if it is available.
* plug-ins/common/poppler.c: added some #ifdefs to compile with
both the new and old version. Can be removed in some weeks
propably.
2005-08-18 Michael Natterer <mitch@gimp.org>
* cursors/Makefile.am
......
......@@ -1196,6 +1196,9 @@ PKG_CHECK_MODULES(POPPLER, poppler-glib >= poppler_required_version gthread-2.0,
AC_SUBST(POPPLER)
AC_SUBST(LIBPOPPLER)
PKG_CHECK_MODULES(POPPLER, poppler-glib >= 0.4,
AC_DEFINE(HAVE_POPPLER_0_4, 1, "Define to 1 if libpoppler >= 0.4 is available")
,)
#################################################
# Check for gnome-vfs (and optionally libgnomeui)
......
......@@ -496,8 +496,11 @@ load_image (PopplerDocument *doc,
poppler_page_render_to_pixbuf (page, 0, 0,
width, height,
scale,
buf,
0, 0);
buf
#ifndef HAVE_POPPLER_0_4
,0, 0,
#endif
);
g_object_get (G_OBJECT (page), "label", &page_label, NULL);
......@@ -552,8 +555,11 @@ get_thumbnail (PopplerDocument *doc,
poppler_page_render_to_pixbuf (page, 0, 0,
width, height,
scale,
pixbuf,
0, 0);
pixbuf
#ifndef HAVE_POPPLER_0_4
,0, 0,
#endif
);
}
g_object_unref (page);
......
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