Ticket #40080: patch_poppler.defs.diff

File patch_poppler.defs.diff, 1.7 KB (added by smithsp (Sterling Smith), 11 years ago)

Patch of poppler.defs file to delete/modify deprecated functions.

  • poppler.defs

    old new  
    16461646  (return-type "GType")
    16471647)
    16481648
    1649 (define-method render_to_pixbuf
    1650   (of-object "PopplerPage")
    1651   (c-name "poppler_page_render_to_pixbuf")
    1652   (return-type "none")
    1653   (parameters
    1654     '("int" "src_x")
    1655     '("int" "src_y")
    1656     '("int" "src_width")
    1657     '("int" "src_height")
    1658     '("double" "scale")
    1659     '("int" "rotation")
    1660     '("GdkPixbuf*" "pixbuf")
    1661   )
    1662 )
    1663 
    1664 (define-method render_to_pixbuf_for_printing
    1665   (of-object "PopplerPage")
    1666   (c-name "poppler_page_render_to_pixbuf_for_printing")
    1667   (return-type "none")
    1668   (parameters
    1669     '("int" "src_x")
    1670     '("int" "src_y")
    1671     '("int" "src_width")
    1672     '("int" "src_height")
    1673     '("double" "scale")
    1674     '("int" "rotation")
    1675     '("GdkPixbuf*" "pixbuf")
    1676   )
    1677 )
    1678 
    1679 (define-method get_thumbnail_pixbuf
    1680   (of-object "PopplerPage")
    1681   (c-name "poppler_page_get_thumbnail_pixbuf")
    1682   (return-type "GdkPixbuf*")
    1683 )
    1684 
    1685 (define-method render_selection_to_pixbuf
    1686   (of-object "PopplerPage")
    1687   (c-name "poppler_page_render_selection_to_pixbuf")
    1688   (return-type "none")
    1689   (parameters
    1690     '("gdouble" "scale")
    1691     '("int" "rotation")
    1692     '("GdkPixbuf*" "pixbuf")
    1693     '("PopplerRectangle*" "selection")
    1694     '("PopplerRectangle*" "old_selection")
    1695     '("PopplerSelectionStyle" "style")
    1696     '("GdkColor*" "glyph_color")
    1697     '("GdkColor*" "background_color")
    1698   )
    1699 )
    17001649
    17011650(define-method render
    17021651  (of-object "PopplerPage")
     
    17941743
    17951744(define-method get_text
    17961745  (of-object "PopplerPage")
    1797   (c-name "poppler_page_get_text")
     1746  (c-name "poppler_page_get_selected_text")
    17981747  (return-type "char*")
    17991748  (parameters
    18001749    '("PopplerSelectionStyle" "style")