From: Jürg Billeter Date: Wed, 18 Jun 2008 21:13:29 +0000 (+0000) Subject: Fix poppler_document_new_from_file binding X-Git-Tag: VALA_0_3_4~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dab5c6ab62f2b8baad09bb1f7218cf55c60d9fa;p=thirdparty%2Fvala.git Fix poppler_document_new_from_file binding 2008-06-18 Jürg Billeter * vapi/packages/poppler-glib/: Fix poppler_document_new_from_file binding * vapi/poppler-glib.vapi: regenerated svn path=/trunk/; revision=1615 --- diff --git a/ChangeLog b/ChangeLog index ba77b6f30..3c57c785a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-06-18 Jürg Billeter + + * vapi/packages/poppler-glib/: + + Fix poppler_document_new_from_file binding + + * vapi/poppler-glib.vapi: regenerated + 2008-06-18 Jürg Billeter * vapi/packages/gtk+-2.0/gtk+-2.0.metadata: diff --git a/vapi/packages/poppler-glib/poppler-glib.deps b/vapi/packages/poppler-glib/poppler-glib.deps index f2c20337e..70df1eab5 100644 --- a/vapi/packages/poppler-glib/poppler-glib.deps +++ b/vapi/packages/poppler-glib/poppler-glib.deps @@ -1,3 +1,4 @@ +gio-2.0 pango gdk-pixbuf-2.0 gdk-2.0 diff --git a/vapi/packages/poppler-glib/poppler-glib.metadata b/vapi/packages/poppler-glib/poppler-glib.metadata index 87a430ed7..d03d8665b 100644 --- a/vapi/packages/poppler-glib/poppler-glib.metadata +++ b/vapi/packages/poppler-glib/poppler-glib.metadata @@ -1,4 +1,5 @@ Poppler cheader_filename="poppler.h" +poppler_document_new_from_file.password nullable="1" poppler_page_get_size.width is_out="1" poppler_page_get_size.height is_out="1" diff --git a/vapi/poppler-glib.vapi b/vapi/poppler-glib.vapi index 65d6d43d5..e89e4cfad 100644 --- a/vapi/poppler-glib.vapi +++ b/vapi/poppler-glib.vapi @@ -206,7 +206,7 @@ namespace Poppler { } [Compact] [CCode (copy_function = "poppler_action_copy", cheader_filename = "poppler.h")] - public class Action : GLib.Boxed { + public class Action { public Poppler.ActionType type; public weak Poppler.ActionAny any; public weak Poppler.ActionGotoDest goto_dest; @@ -219,7 +219,7 @@ namespace Poppler { } [Compact] [CCode (copy_function = "poppler_dest_copy", cheader_filename = "poppler.h")] - public class Dest : GLib.Boxed { + public class Dest { public Poppler.DestType type; public int page_num; public double left; @@ -235,7 +235,7 @@ namespace Poppler { } [Compact] [CCode (copy_function = "poppler_fonts_iter_copy", cheader_filename = "poppler.h")] - public class FontsIter : GLib.Boxed { + public class FontsIter { public weak Poppler.FontsIter copy (); public weak string get_file_name (); public Poppler.FontType get_font_type (); @@ -247,7 +247,7 @@ namespace Poppler { } [Compact] [CCode (copy_function = "poppler_form_field_mapping_copy", cheader_filename = "poppler.h")] - public class FormFieldMapping : GLib.Boxed { + public class FormFieldMapping { public weak Poppler.Rectangle area; public weak Poppler.FormField field; public weak Poppler.FormFieldMapping copy (); @@ -255,7 +255,7 @@ namespace Poppler { } [Compact] [CCode (copy_function = "poppler_image_mapping_copy", cheader_filename = "poppler.h")] - public class ImageMapping : GLib.Boxed { + public class ImageMapping { public weak Poppler.Rectangle area; public weak Gdk.Pixbuf image; public weak Poppler.ImageMapping copy (); @@ -263,7 +263,7 @@ namespace Poppler { } [Compact] [CCode (copy_function = "poppler_index_iter_copy", cheader_filename = "poppler.h")] - public class IndexIter : GLib.Boxed { + public class IndexIter { public weak Poppler.IndexIter copy (); public weak Poppler.Action get_action (); public weak Poppler.IndexIter get_child (); @@ -273,7 +273,7 @@ namespace Poppler { } [Compact] [CCode (copy_function = "poppler_link_mapping_copy", cheader_filename = "poppler.h")] - public class LinkMapping : GLib.Boxed { + public class LinkMapping { public weak Poppler.Rectangle area; public weak Poppler.Action action; public weak Poppler.LinkMapping copy (); @@ -281,7 +281,7 @@ namespace Poppler { } [Compact] [CCode (copy_function = "poppler_page_transition_copy", cheader_filename = "poppler.h")] - public class PageTransition : GLib.Boxed { + public class PageTransition { public Poppler.PageTransitionType type; public Poppler.PageTransitionAlignment alignment; public Poppler.PageTransitionDirection direction; @@ -294,7 +294,7 @@ namespace Poppler { } [Compact] [CCode (copy_function = "poppler_rectangle_copy", cheader_filename = "poppler.h")] - public class Rectangle : GLib.Boxed { + public class Rectangle { public double x1; public double y1; public double x2; @@ -323,7 +323,7 @@ namespace Poppler { public weak Poppler.Page get_page_by_label (string label); public bool has_attachments (); public Document.from_data (string data, int length, string password) throws GLib.Error; - public Document.from_file (string uri, string password) throws GLib.Error; + public Document.from_file (string uri, string? password) throws GLib.Error; public bool save (string uri) throws GLib.Error; [NoAccessorMethod] public string author { get; }