Ticket #33161: patch-poppler.defs.diff

File patch-poppler.defs.diff, 2.9 KB (added by m.haller@…, 13 years ago)

patch for poppler.defs

  • 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 )
    1700 
    17011649(define-method render
    17021650  (of-object "PopplerPage")
    17031651  (c-name "poppler_page_render")
     
    17521700  (return-type "int")
    17531701)
    17541702
     1703(define-method get_label
     1704  (of-object "PopplerPage")
     1705  (c-name "poppler_page_get_label")
     1706  (return-type "gchar*")
     1707)
     1708
    17551709(define-method get_duration
    17561710  (of-object "PopplerPage")
    17571711  (c-name "poppler_page_get_duration")
     
    17961750  (of-object "PopplerPage")
    17971751  (c-name "poppler_page_get_text")
    17981752  (return-type "char*")
     1753)
     1754
     1755(define-method get_selected_text
     1756  (of-object "PopplerPage")
     1757  (c-name "poppler_page_get_selected_text")
     1758  (return-type "char*")
    17991759  (parameters
    18001760    '("PopplerSelectionStyle" "style")
    1801     '("PopplerRectangle*" "rect")
     1761    '("PopplerRectangle*" "selection")
    18021762  )
    18031763)
    18041764
     
    18861846  )
    18871847)
    18881848
     1849(define-function poppler_page_add_annot
     1850  (of-object "PopplerPage")
     1851  (c-name "poppler_page_add_annot")
     1852  (return-type "none")
     1853  (parameters
     1854    '("PopplerAnnot*" "annot")
     1855    '("GList*" "list")
     1856  )
     1857)
     1858
    18891859(define-method get_crop_box
    18901860  (of-object "PopplerPage")
    18911861  (c-name "poppler_page_get_crop_box")
     
    18951865  )
    18961866)
    18971867
     1868(define-method get_text_layout
     1869  (of-object "PopplerPage")
     1870  (c-name "poppler_page_get_text_layout")
     1871  (return-type "gboolean")
     1872  (parameters
     1873    '("PopplerRectangle**" "rectangles")
     1874    '("guint*" "n_rectangles")
     1875  )
     1876)
     1877
    18981878(define-function poppler_rectangle_get_type
    18991879  (c-name "poppler_rectangle_get_type")
    19001880  (return-type "GType")