aboutsummaryrefslogtreecommitdiff
path: root/python/pypoppler/patches/poppler0.15.0-changes.patch
diff options
context:
space:
mode:
authordsomero <xgizzmo@slackbuilds.org>2011-03-28 01:26:21 -0400
committerRobby Workman <rworkman@slackbuilds.org>2011-03-29 00:07:26 -0500
commit6e3ec235efd0b13eb5862780d9ce529205b89d63 (patch)
treea25fb3d3c200fcd862dceb6696961362a27bfa5f /python/pypoppler/patches/poppler0.15.0-changes.patch
parenta496a5d0540baf3adaf8d1b988a63c8d69833d1b (diff)
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>
Diffstat (limited to 'python/pypoppler/patches/poppler0.15.0-changes.patch')
-rw-r--r--python/pypoppler/patches/poppler0.15.0-changes.patch66
1 files changed, 66 insertions, 0 deletions
diff --git a/python/pypoppler/patches/poppler0.15.0-changes.patch b/python/pypoppler/patches/poppler0.15.0-changes.patch
new file mode 100644
index 0000000000000..a480cfa437a85
--- /dev/null
+++ b/python/pypoppler/patches/poppler0.15.0-changes.patch
@@ -0,0 +1,66 @@
+--- poppler.defs
++++ poppler.defs
+@@ -1760,6 +1760,12 @@
+ (return-type "int")
+ )
+
++(define-method get_label
++ (of-object "PopplerPage")
++ (c-name "poppler_page_get_label")
++ (return-type "gchar*")
++)
++
+ (define-method get_duration
+ (of-object "PopplerPage")
+ (c-name "poppler_page_get_duration")
+@@ -1805,9 +1811,15 @@
+ (of-object "PopplerPage")
+ (c-name "poppler_page_get_text")
+ (return-type "char*")
++)
++
++(define-method get_selected_text
++ (of-object "PopplerPage")
++ (c-name "poppler_page_get_selected_text")
++ (return-type "char*")
+ (parameters
+ '("PopplerSelectionStyle" "style")
+- '("PopplerRectangle*" "rect")
++ '("PopplerRectangle*" "selection")
+ )
+ )
+
+@@ -1895,6 +1907,16 @@
+ )
+ )
+
++(define-function poppler_page_add_annot
++ (of-object "PopplerPage")
++ (c-name "poppler_page_add_annot")
++ (return-type "none")
++ (parameters
++ '("PopplerAnnot*" "annot")
++ '("GList*" "list")
++ )
++)
++
+ (define-method get_crop_box
+ (of-object "PopplerPage")
+ (c-name "poppler_page_get_crop_box")
+@@ -1904,6 +1926,16 @@
+ )
+ )
+
++(define-method get_text_layout
++ (of-object "PopplerPage")
++ (c-name "poppler_page_get_text_layout")
++ (return-type "gboolean")
++ (parameters
++ '("PopplerRectangle**" "rectangles")
++ '("guint*" "n_rectangles")
++ )
++)
++
+ (define-function poppler_rectangle_get_type
+ (c-name "poppler_rectangle_get_type")
+ (return-type "GType")