]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
poppler-glib: Update to 0.23.4
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 26 Jul 2013 18:55:04 +0000 (20:55 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 26 Jul 2013 18:55:04 +0000 (20:55 +0200)
vapi/Makefile.am
vapi/poppler-glib.deps
vapi/poppler-glib.vapi

index 3bf27d17db0aacfe7d292a67c28419845ec1a6cb..61fdb3e132f19928bdb8d79df68f39c9a418866f 100644 (file)
@@ -695,7 +695,7 @@ pangocairo:
        $(GENVAPI) --library $(srcdir)/pangocairo --metadatadir $(METADATADIR) $(GIRDIR)/PangoCairo-1.0.gir
 
 poppler-glib:
-       $(GENVAPI) --library $(srcdir)/poppler-glib --metadatadir $(METADATADIR) $(GIRDIR)/Poppler-0.18.gir
+       $(GENVAPI) --library $(srcdir)/poppler-glib --pkg cairo --pkg gio-2.0 --metadatadir $(METADATADIR) $(GIRDIR)/Poppler-0.18.gir
 
 purple:
        $(GENVAPI) --library $(srcdir)/purple $(PACKAGESDIR)/purple/purple-custom.vala $(PACKAGESDIR)/purple/purple.gi
index 08452cd433ad0236fe48ad34655424e01846a304..32d8c2d89570b31cf5412124bfbdefdb5a0c4484 100644 (file)
@@ -1,2 +1,2 @@
-glib-2.0
 cairo
+gio-2.0
index 4479a8bd7e7d5a78832c1d2acafda0c958591d20..48df6db13d49c994d704927b594fc6785a5b14f1 100644 (file)
@@ -52,6 +52,7 @@ namespace Poppler {
                public int get_page_index ();
                public void set_color (Poppler.Color? poppler_color);
                public void set_contents (string contents);
+               public void set_flags (Poppler.AnnotFlag flags);
        }
        [CCode (cheader_filename = "poppler.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "poppler_annot_callout_line_get_type ()")]
        [Compact]
@@ -183,6 +184,10 @@ namespace Poppler {
                public Document.from_data (string data, int length, string? password) throws GLib.Error;
                [CCode (has_construct_function = false)]
                public Document.from_file (string uri, string? password) throws GLib.Error;
+               [CCode (has_construct_function = false)]
+               public Document.from_gfile (GLib.File file, string? password, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               [CCode (has_construct_function = false)]
+               public Document.from_stream (GLib.InputStream stream, int64 length, string? password, GLib.Cancellable? cancellable = null) throws GLib.Error;
                public GLib.List<Poppler.Attachment> get_attachments ();
                public string get_author ();
                public long get_creation_date ();
@@ -388,6 +393,7 @@ namespace Poppler {
                protected Page ();
                public void add_annot (Poppler.Annot annot);
                public GLib.List<Poppler.Rectangle> find_text (string text);
+               public GLib.List<Poppler.Rectangle> find_text_with_options (string text, Poppler.FindFlags options);
                public static void free_annot_mapping (GLib.List<Poppler.AnnotMapping> list);
                public static void free_form_field_mapping (GLib.List<Poppler.FormFieldMapping> list);
                public static void free_image_mapping (GLib.List<Poppler.ImageMapping> list);
@@ -413,6 +419,7 @@ namespace Poppler {
                public Cairo.Surface get_thumbnail ();
                public bool get_thumbnail_size (out int width, out int height);
                public Poppler.PageTransition get_transition ();
+               public void remove_annot (Poppler.Annot annot);
                public void render ([CCode (type = "cairo_t*")] Cairo.Context cairo);
                public void render_for_printing ([CCode (type = "cairo_t*")] Cairo.Context cairo);
                public void render_for_printing_with_options ([CCode (type = "cairo_t*")] Cairo.Context cairo, Poppler.PrintFlags options);
@@ -646,6 +653,14 @@ namespace Poppler {
                FITBV,
                NAMED
        }
+       [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_FIND_", type_id = "poppler_find_flags_get_type ()")]
+       [Flags]
+       public enum FindFlags {
+               DEFAULT,
+               CASE_SENSITIVE,
+               BACKWARDS,
+               WHOLE_WORDS_ONLY
+       }
        [CCode (cheader_filename = "poppler.h", cprefix = "POPPLER_FONT_TYPE_", type_id = "poppler_font_type_get_type ()")]
        public enum FontType {
                UNKNOWN,