[vala/0.42] gtk+-unix-print-*.0: Fix PrintJob.get_page_ranges(), Printer.get_hard_margins()



commit 598b3710d95d91b14b0e0a52fe4c39b9e4f947b7
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Feb 10 13:12:43 2019 +0100

    gtk+-unix-print-*.0: Fix PrintJob.get_page_ranges(), Printer.get_hard_margins()

 vapi/gtk+-unix-print-2.0.vapi                                  | 2 +-
 vapi/gtk+-unix-print-3.0.vapi                                  | 4 ++--
 vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.0.metadata | 4 ++++
 vapi/packages/gtk+-unix-print-3.0/gtk+-unix-print-3.0.metadata | 6 ++++++
 4 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/vapi/gtk+-unix-print-2.0.vapi b/vapi/gtk+-unix-print-2.0.vapi
index ad4da0d09..79fe7ac32 100644
--- a/vapi/gtk+-unix-print-2.0.vapi
+++ b/vapi/gtk+-unix-print-2.0.vapi
@@ -80,7 +80,7 @@ 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 unowned string get_icon_name ();
                [CCode (cname = "gtk_printer_is_virtual")]
                public bool get_is_virtual ();
diff --git a/vapi/gtk+-unix-print-3.0.vapi b/vapi/gtk+-unix-print-3.0.vapi
index d6e88f902..e9f2c2bd9 100644
--- a/vapi/gtk+-unix-print-3.0.vapi
+++ b/vapi/gtk+-unix-print-3.0.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,7 @@ 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 unowned string get_icon_name ();
                [CCode (cname = "gtk_printer_is_virtual")]
                public bool get_is_virtual ();
diff --git a/vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.0.metadata 
b/vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.0.metadata
index b7e80bc3d..da19d29c1 100644
--- a/vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.0.metadata
+++ b/vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.0.metadata
@@ -6,6 +6,10 @@ 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_is_virtual name="get_is_virtual"
 gtk_printer_list_papers transfer_ownership="1" type_name="GLib.List<Gtk.PageSetup>"
 GtkPrintJobCompleteFunc hidden="1"
diff --git a/vapi/packages/gtk+-unix-print-3.0/gtk+-unix-print-3.0.metadata 
b/vapi/packages/gtk+-unix-print-3.0/gtk+-unix-print-3.0.metadata
index b9f558d44..4e05eeb89 100644
--- a/vapi/packages/gtk+-unix-print-3.0/gtk+-unix-print-3.0.metadata
+++ b/vapi/packages/gtk+-unix-print-3.0/gtk+-unix-print-3.0.metadata
@@ -1,11 +1,17 @@
 Gtk cheader_filename="gtk/gtkunixprint.h" gir_namespace="Gtk" gir_version="3.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_is_virtual name="get_is_virtual"
 gtk_printer_list_papers transfer_ownership="1" type_name="GLib.List<Gtk.PageSetup>"
 GtkPrintJobCompleteFunc hidden="1"


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