Index: glib/poppler-page.cc =================================================================== RCS file: /cvs/poppler/poppler/glib/poppler-page.cc,v retrieving revision 1.59 diff -u -u -r1.59 poppler-page.cc --- glib/poppler-page.cc 21 May 2007 21:39:08 -0000 1.59 +++ glib/poppler-page.cc 22 May 2007 15:09:26 -0000 @@ -643,12 +643,13 @@ * only render the changed part of the selection. **/ void -poppler_page_render_selection (PopplerPage *page, - cairo_t *cairo, - PopplerRectangle *selection, - PopplerRectangle *old_selection, - GdkColor *glyph_color, - GdkColor *background_color) +poppler_page_render_selection (PopplerPage *page, + cairo_t *cairo, + PopplerRectangle *selection, + PopplerRectangle *old_selection, + PopplerSelectionStyle style, + GdkColor *glyph_color, + GdkColor *background_color) { TextOutputDev *text_dev; CairoOutputDev *output_dev; @@ -711,14 +712,15 @@ * only render the changed part of the selection. **/ void -poppler_page_render_selection_to_pixbuf (PopplerPage *page, - gdouble scale, - int rotation, - GdkPixbuf *pixbuf, - PopplerRectangle *selection, - PopplerRectangle *old_selection, - GdkColor *glyph_color, - GdkColor *background_color) +poppler_page_render_selection_to_pixbuf (PopplerPage *page, + gdouble scale, + int rotation, + GdkPixbuf *pixbuf, + PopplerRectangle *selection, + PopplerRectangle *old_selection, + PopplerSelectionStyle style, + GdkColor *glyph_color, + GdkColor *background_color) { TextOutputDev *text_dev; OutputDev *output_dev; Index: glib/poppler-page.h =================================================================== RCS file: /cvs/poppler/poppler/glib/poppler-page.h,v retrieving revision 1.26 diff -u -u -r1.26 poppler-page.h --- glib/poppler-page.h 21 May 2007 21:39:08 -0000 1.26 +++ glib/poppler-page.h 22 May 2007 15:09:26 -0000 @@ -81,8 +81,9 @@ cairo_t *cairo, PopplerRectangle *selection, PopplerRectangle *old_selection, - GdkColor *glyph_color, - GdkColor *background_color); + PopplerSelectionStyle style, + GdkColor *glyph_color, + GdkColor *background_color); #endif void poppler_page_render_selection_to_pixbuf ( PopplerPage *page, @@ -91,6 +92,7 @@ GdkPixbuf *pixbuf, PopplerRectangle *selection, PopplerRectangle *old_selection, + PopplerSelectionStyle style, GdkColor *glyph_color, GdkColor *background_color); GList *poppler_page_get_form_fields (PopplerPage *page); Index: glib/poppler.h =================================================================== RCS file: /cvs/poppler/poppler/glib/poppler.h,v retrieving revision 1.15 diff -u -u -r1.15 poppler.h --- glib/poppler.h 21 May 2007 21:35:10 -0000 1.15 +++ glib/poppler.h 22 May 2007 15:09:26 -0000 @@ -70,6 +70,13 @@ POPPLER_PAGE_TRANSITION_OUTWARD } PopplerPageTransitionDirection; +typedef enum +{ + POPPLER_SELECTION_NORMAL, + POPPLER_SELECTION_WORD, + POPPLER_SELECTION_PARAGRAPH +} PopplerSelectionStyle; + /* MUST be the same than poppler/Form.h fieldType */ typedef enum {