Commit 0940516d authored by Rico Tzschichholz's avatar Rico Tzschichholz

gtk4-unix-printer: Update to 3.94.0+a872c41f

and fix PrintJob.get_page_ranges(), Printer.get_hard_margins()
parent 1a1e184d
......@@ -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 ();
......
......@@ -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>
......
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"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment