slackbuilds_ponce/python/pypoppler/patches/pypoppler-0.12.1-75_74.diff
dsomero 6e3ec235ef python/pypoppler: Patched to build with poppler 0.16.
Patched for poppler 0.16 and added some upstream fixes.

Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
2011-03-29 00:07:26 -05:00

73 lines
1.8 KiB
Diff

--- poppler.defs
+++ poppler.defs
@@ -1642,6 +1642,7 @@
(of-object "PopplerPage")
(c-name "poppler_page_render_to_pixbuf")
(return-type "none")
+ (unblock-threads #t)
(parameters
'("int" "src_x")
'("int" "src_y")
@@ -1657,6 +1658,7 @@
(of-object "PopplerPage")
(c-name "poppler_page_render_to_pixbuf_for_printing")
(return-type "none")
+ (unblock-threads #t)
(parameters
'("int" "src_x")
'("int" "src_y")
@@ -1672,12 +1674,14 @@
(of-object "PopplerPage")
(c-name "poppler_page_get_thumbnail_pixbuf")
(return-type "GdkPixbuf*")
+ (unblock-threads #t)
)
(define-method render_selection_to_pixbuf
(of-object "PopplerPage")
(c-name "poppler_page_render_selection_to_pixbuf")
(return-type "none")
+ (unblock-threads #t)
(parameters
'("gdouble" "scale")
'("int" "rotation")
@@ -1694,6 +1698,7 @@
(of-object "PopplerPage")
(c-name "poppler_page_render")
(return-type "none")
+ (unblock-threads #t)
(parameters
'("cairo_t*" "cairo")
)
@@ -1703,6 +1708,7 @@
(of-object "PopplerPage")
(c-name "poppler_page_render_for_printing")
(return-type "none")
+ (unblock-threads #t)
(parameters
'("cairo_t*" "cairo")
)
@@ -1712,12 +1718,14 @@
(of-object "PopplerPage")
(c-name "poppler_page_get_thumbnail")
(return-type "cairo_surface_t*")
+ (unblock-threads #t)
)
(define-method render_selection
(of-object "PopplerPage")
(c-name "poppler_page_render_selection")
(return-type "none")
+ (unblock-threads #t)
(parameters
'("cairo_t*" "cairo")
'("PopplerRectangle*" "selection")
@@ -1779,6 +1787,7 @@
(of-object "PopplerPage")
(c-name "poppler_page_render_to_ps")
(return-type "none")
+ (unblock-threads #t)
(parameters
'("PopplerPSFile*" "ps_file")
)