diff options
author | Larry Hajali <larryhaja[at]gmail[dot]com> | 2011-07-28 00:25:26 -0500 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-08-11 20:28:36 -0300 |
commit | 9c7d60c1796d966dfa17a0021e725ba5b4460390 (patch) | |
tree | 1b5ed996bb98af29b1715feab7d8d8ee16e80a8f /python/pypoppler/patches | |
parent | 977a5c53391d7193842448a3afa017120f8ef1f4 (diff) | |
download | slackbuilds-9c7d60c1796d966dfa17a0021e725ba5b4460390.tar.gz |
python/pypoppler: Reverted pypoppler-0.12.1-76_75.diff
Removed patch "pypoppler-0.12.1-76_75.diff" due to issues
displaying PDF files in pdfshuffler.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'python/pypoppler/patches')
-rw-r--r-- | python/pypoppler/patches/pypoppler-0.12.1-76_75.diff | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/python/pypoppler/patches/pypoppler-0.12.1-76_75.diff b/python/pypoppler/patches/pypoppler-0.12.1-76_75.diff deleted file mode 100644 index 94f4543e87..0000000000 --- a/python/pypoppler/patches/pypoppler-0.12.1-76_75.diff +++ /dev/null @@ -1,66 +0,0 @@ ---- poppler.override -+++ poppler.override -@@ -600,3 +600,62 @@ - return PycairoSurface_FromSurface(surface, NULL, NULL); - #endif - } -+%% -+override poppler_page_render_to_pixbuf kwargs -+static PyObject * -+_wrap_poppler_page_render_to_pixbuf(PyGObject *self, -+ PyObject *args, -+ PyObject *kwargs) -+{ -+ static char *kwlist[] = { "src_x", "src_y", "src_width", -+ "src_height", "scale", "rotation", NULL }; -+ int src_x, src_y, src_width, src_height, rotation; -+ double scale; -+ GdkPixbuf *pixbuf = NULL; -+ -+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, -+ "iiiidi:Poppler.Page.render_to_pixbuf", -+ kwlist, &src_x, &src_y, &src_width, -+ &src_height, &scale, &rotation)) -+ return NULL; -+ -+ pyg_begin_allow_threads; -+ -+ poppler_page_render_to_pixbuf(POPPLER_PAGE(self->obj), src_x, src_y, -+ src_width, src_height, scale, -+ rotation, pixbuf); -+ -+ pyg_end_allow_threads; -+ -+ return pygobject_new((GObject *)pixbuf); -+} -+%% -+override poppler_page_render_to_pixbuf_for_printing kwargs -+static PyObject * -+_wrap_poppler_page_render_to_pixbuf_for_printing(PyGObject *self, -+ PyObject *args, -+ PyObject *kwargs) -+{ -+ static char *kwlist[] = { "src_x", "src_y", "src_width", -+ "src_height", "scale", "rotation", NULL }; -+ int src_x, src_y, src_width, src_height, rotation; -+ double scale; -+ GdkPixbuf *pixbuf = NULL; -+ -+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, -+ "iiiidi:Poppler.Page.render_to_pixbuf_for_printing", -+ kwlist, &src_x, &src_y, &src_width, -+ &src_height, &scale, &rotation)) -+ return NULL; -+ -+ pyg_begin_allow_threads; -+ -+ poppler_page_render_to_pixbuf_for_printing(POPPLER_PAGE(self->obj), -+ src_x, src_y, src_width, -+ src_height, scale, -+ rotation, pixbuf); -+ -+ pyg_end_allow_threads; -+ -+ return pygobject_new((GObject *)pixbuf); -+} - |