[vala/staging] gtk4-unix-printer: Update to 3.94.0+a872c41f



commit 0940516d9cada88e06a3e4c3cf8e0ba0fb913d80
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Feb 10 13:13:53 2019 +0100

    gtk4-unix-printer: Update to 3.94.0+a872c41f
    
    and fix PrintJob.get_page_ranges(), Printer.get_hard_margins()

 vapi/gtk4-unix-print.vapi                          |  5 +++--
 vapi/packages/gtk4-unix-print/gtk4-unix-print.gi   | 23 ++++++++++++++++++++++
 .../gtk4-unix-print/gtk4-unix-print.metadata       | 12 ++++++++++-
 3 files changed, 37 insertions(+), 3 deletions(-)
---
diff --git a/vapi/gtk4-unix-print.vapi b/vapi/gtk4-unix-print.vapi
index 777de188c..c3affd869 100644
--- a/vapi/gtk4-unix-print.vapi
+++ b/vapi/gtk4-unix-print.vapi
@@ -22,7 +22,7 @@ namespace Gtk {
                public uint get_n_up ();
                public Gtk.NumberUpLayout get_n_up_layout ();
                public int get_num_copies ();
-               public Gtk.PageRange get_page_ranges (int n_ranges);
+               public unowned Gtk.PageRange[] get_page_ranges ();
                public Gtk.PageSet get_page_set ();
                public Gtk.PrintPages get_pages ();
                public unowned Gtk.Printer get_printer ();
@@ -100,7 +100,8 @@ namespace Gtk {
                public Gtk.PrintCapabilities get_capabilities ();
                public Gtk.PageSetup get_default_page_size ();
                public unowned string get_description ();
-               public bool get_hard_margins (double top, double bottom, double left, double right);
+               public bool get_hard_margins (out double top, out double bottom, out double left, out double 
right);
+               public bool get_hard_margins_for_paper_size (Gtk.PaperSize paper_size, out double top, out 
double bottom, out double left, out double right);
                public unowned string get_icon_name ();
                [CCode (cname = "gtk_printer_is_virtual")]
                public bool get_is_virtual ();
diff --git a/vapi/packages/gtk4-unix-print/gtk4-unix-print.gi 
b/vapi/packages/gtk4-unix-print/gtk4-unix-print.gi
index d642f171f..1ced82dd6 100644
--- a/vapi/packages/gtk4-unix-print/gtk4-unix-print.gi
+++ b/vapi/packages/gtk4-unix-print/gtk4-unix-print.gi
@@ -29,10 +29,22 @@
                </struct>
                <struct name="GtkPrintJob_autoptr">
                </struct>
+               <struct name="GtkPrintJob_listautoptr">
+               </struct>
+               <struct name="GtkPrintJob_slistautoptr">
+               </struct>
                <struct name="GtkPrintUnixDialog_autoptr">
                </struct>
+               <struct name="GtkPrintUnixDialog_listautoptr">
+               </struct>
+               <struct name="GtkPrintUnixDialog_slistautoptr">
+               </struct>
                <struct name="GtkPrinter_autoptr">
                </struct>
+               <struct name="GtkPrinter_listautoptr">
+               </struct>
+               <struct name="GtkPrinter_slistautoptr">
+               </struct>
                <flags name="GtkPrintCapabilities" type-name="GtkPrintCapabilities" 
get-type="gtk_print_capabilities_get_type">
                        <member name="GTK_PRINT_CAPABILITY_PAGE_SET" value="1"/>
                        <member name="GTK_PRINT_CAPABILITY_COPIES" value="2"/>
@@ -493,6 +505,17 @@
                                        <parameter name="right" type="gdouble*"/>
                                </parameters>
                        </method>
+                       <method name="get_hard_margins_for_paper_size" 
symbol="gtk_printer_get_hard_margins_for_paper_size">
+                               <return-type type="gboolean"/>
+                               <parameters>
+                                       <parameter name="printer" type="GtkPrinter*"/>
+                                       <parameter name="paper_size" type="GtkPaperSize*"/>
+                                       <parameter name="top" type="gdouble*"/>
+                                       <parameter name="bottom" type="gdouble*"/>
+                                       <parameter name="left" type="gdouble*"/>
+                                       <parameter name="right" type="gdouble*"/>
+                               </parameters>
+                       </method>
                        <method name="get_icon_name" symbol="gtk_printer_get_icon_name">
                                <return-type type="gchar*"/>
                                <parameters>
diff --git a/vapi/packages/gtk4-unix-print/gtk4-unix-print.metadata 
b/vapi/packages/gtk4-unix-print/gtk4-unix-print.metadata
index a1e83e3b5..248829ff6 100644
--- a/vapi/packages/gtk4-unix-print/gtk4-unix-print.metadata
+++ b/vapi/packages/gtk4-unix-print/gtk4-unix-print.metadata
@@ -1,11 +1,21 @@
 Gtk cheader_filename="gtk/gtkunixprint.h" gir_namespace="Gtk" gir_version="4.0" cprefix="Gtk" 
lower_case_cprefix="gtk_"
 
+gtk_print_job_get_page_ranges is_array="1"
+gtk_print_job_get_page_ranges.n_ranges hidden="1"
 gtk_print_job_send.callback transfer_ownership="1"
 gtk_print_job_send.dnotify hidden="1"
 gtk_print_unix_dialog_get_settings transfer_ownership="1"
 gtk_printer_accepts_pdf name="get_accepts_pdf"
 gtk_printer_accepts_ps name="get_accepts_ps"
 gtk_printer_get_default_page_size transfer_ownership="1"
+gtk_printer_get_hard_margins.top is_out="1"
+gtk_printer_get_hard_margins.bottom is_out="1"
+gtk_printer_get_hard_margins.left is_out="1"
+gtk_printer_get_hard_margins.right is_out="1"
+gtk_printer_get_hard_margins_for_paper_size.top is_out="1"
+gtk_printer_get_hard_margins_for_paper_size.bottom is_out="1"
+gtk_printer_get_hard_margins_for_paper_size.left is_out="1"
+gtk_printer_get_hard_margins_for_paper_size.right is_out="1"
 gtk_printer_is_virtual name="get_is_virtual"
 gtk_printer_list_papers transfer_ownership="1" type_name="GLib.List<Gtk.PageSetup>"
 GtkPrintJobCompleteFunc hidden="1"
@@ -16,4 +26,4 @@ gtk_enumerate_printers.destroy hidden="1"
 *.dummy* hidden="1"
 *_reserved* hidden="1"
 *_gtk_recent* hidden="1"
-*_autoptr hidden="1"
+*autoptr hidden="1"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]