From: Rico Tzschichholz Date: Tue, 3 Jan 2017 15:11:23 +0000 (+0100) Subject: vapi: Add gtk+-unix-print-4.0 bindings X-Git-Tag: 0.35.3~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=441c06d3192bbd31cbe4c938e66a93f0c4a0a177;p=thirdparty%2Fvala.git vapi: Add gtk+-unix-print-4.0 bindings --- diff --git a/vapi/Makefile.am b/vapi/Makefile.am index 17fdd9a06..81f0a59cf 100644 --- a/vapi/Makefile.am +++ b/vapi/Makefile.am @@ -174,6 +174,8 @@ dist_vapi_DATA = \ gtk+-unix-print-2.0.vapi \ gtk+-unix-print-3.0.deps \ gtk+-unix-print-3.0.vapi \ + gtk+-unix-print-4.0.deps \ + gtk+-unix-print-4.0.vapi \ gtkmozembed.deps \ gtkmozembed.vapi \ gtksourceview-2.0.deps \ @@ -366,6 +368,7 @@ GIDL_BINDINGS = \ gtk+-3.0 \ gtk+-unix-print-2.0 \ gtk+-unix-print-3.0 \ + gtk+-unix-print-4.0 \ gtksourceview-2.0 \ hildon-1 \ hildon-fm-2 \ @@ -707,6 +710,9 @@ gtk+-unix-print-2.0: gtk+-unix-print-3.0: $(GENVAPI) --library $(srcdir)/gtk+-unix-print-3.0 $(PACKAGESDIR)/gtk+-unix-print-3.0/gtk+-unix-print-3.0-custom.vala $(PACKAGESDIR)/gtk+-unix-print-3.0/gtk+-unix-print-3.0.gi +gtk+-unix-print-4.0: + $(GENVAPI) --library $(srcdir)/gtk+-unix-print-4.0 $(PACKAGESDIR)/gtk+-unix-print-4.0/gtk+-unix-print-4.0-custom.vala $(PACKAGESDIR)/gtk+-unix-print-4.0/gtk+-unix-print-4.0.gi + gtksourceview-2.0: $(GENVAPI) --library $(srcdir)/gtksourceview-2.0 $(PACKAGESDIR)/gtksourceview-2.0/gtksourceview-2.0.gi diff --git a/vapi/gtk+-unix-print-4.0.deps b/vapi/gtk+-unix-print-4.0.deps new file mode 100644 index 000000000..21462da8e --- /dev/null +++ b/vapi/gtk+-unix-print-4.0.deps @@ -0,0 +1,2 @@ +cairo +gtk+-4.0 diff --git a/vapi/gtk+-unix-print-4.0.vapi b/vapi/gtk+-unix-print-4.0.vapi new file mode 100644 index 000000000..0fbe2fd93 --- /dev/null +++ b/vapi/gtk+-unix-print-4.0.vapi @@ -0,0 +1,156 @@ +/* gtk+-unix-print-4.0.vapi generated by vapigen, do not modify. */ + +[CCode (cprefix = "Gtk", gir_namespace = "Gtk", gir_version = "4.0", lower_case_cprefix = "gtk_")] +namespace Gtk { + [CCode (cheader_filename = "gtk/gtkunixprint.h")] + public class PageSetupUnixDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable { + [CCode (has_construct_function = false, type = "GtkWidget*")] + public PageSetupUnixDialog (string title, Gtk.Window parent); + public unowned Gtk.PageSetup get_page_setup (); + public unowned Gtk.PrintSettings get_print_settings (); + public void set_page_setup (Gtk.PageSetup page_setup); + public void set_print_settings (Gtk.PrintSettings print_settings); + } + [CCode (cheader_filename = "gtk/gtkunixprint.h")] + public abstract class PrintBackend : GLib.Object { + } + [CCode (cheader_filename = "gtk/gtkunixprint.h")] + public class PrintJob : GLib.Object { + [CCode (has_construct_function = false)] + public PrintJob (string title, Gtk.Printer printer, Gtk.PrintSettings settings, Gtk.PageSetup page_setup); + public bool get_collate (); + 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 Gtk.PageSet get_page_set (); + public Gtk.PrintPages get_pages (); + public unowned Gtk.Printer get_printer (); + public bool get_reverse (); + public bool get_rotate (); + public double get_scale (); + public unowned Gtk.PrintSettings get_settings (); + public Gtk.PrintStatus get_status (); + public unowned Cairo.Surface get_surface () throws GLib.Error; + public unowned string get_title (); + public bool get_track_print_status (); + public void send (owned Gtk.PrintJobCompleteFunc callback); + public void set_collate (bool collate); + public void set_n_up (uint n_up); + public void set_n_up_layout (Gtk.NumberUpLayout layout); + public void set_num_copies (int num_copies); + public void set_page_ranges (Gtk.PageRange[] ranges); + public void set_page_set (Gtk.PageSet page_set); + public void set_pages (Gtk.PrintPages pages); + public void set_reverse (bool reverse); + public void set_rotate (bool rotate); + public void set_scale (double scale); + public bool set_source_fd (int fd) throws GLib.Error; + public bool set_source_file (string filename) throws GLib.Error; + public void set_track_print_status (bool track_status); + [NoAccessorMethod] + public Gtk.PageSetup page_setup { owned get; construct; } + public Gtk.Printer printer { get; construct; } + public Gtk.PrintSettings settings { get; construct; } + public string title { get; construct; } + public bool track_print_status { get; set; } + public virtual signal void status_changed (); + } + [CCode (cheader_filename = "gtk/gtkunixprint.h")] + public class PrintUnixDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable { + [CCode (has_construct_function = false, type = "GtkWidget*")] + public PrintUnixDialog (string title, Gtk.Window parent); + public void add_custom_tab (Gtk.Widget child, Gtk.Widget tab_label); + public int get_current_page (); + public bool get_embed_page_setup (); + public bool get_has_selection (); + public Gtk.PrintCapabilities get_manual_capabilities (); + public unowned Gtk.PageSetup get_page_setup (); + public bool get_page_setup_set (); + public unowned Gtk.Printer get_selected_printer (); + public Gtk.PrintSettings get_settings (); + public bool get_support_selection (); + public void set_current_page (int current_page); + public void set_embed_page_setup (bool embed); + public void set_has_selection (bool has_selection); + public void set_manual_capabilities (Gtk.PrintCapabilities capabilities); + public void set_page_setup (Gtk.PageSetup page_setup); + public void set_settings (Gtk.PrintSettings settings); + public void set_support_selection (bool support_selection); + public int current_page { get; set; } + public bool embed_page_setup { get; set; } + public bool has_selection { get; set; } + public Gtk.PrintCapabilities manual_capabilities { get; set; } + public Gtk.PageSetup page_setup { get; set; } + [NoAccessorMethod] + public Gtk.PrintSettings print_settings { owned get; set; } + public Gtk.Printer selected_printer { get; } + public bool support_selection { get; set; } + } + [CCode (cheader_filename = "gtk/gtkunixprint.h")] + public class Printer : GLib.Object { + [CCode (has_construct_function = false)] + public Printer (string name, Gtk.PrintBackend backend, bool virtual_); + public int compare (Gtk.Printer b); + [CCode (cname = "gtk_printer_accepts_pdf")] + public bool get_accepts_pdf (); + [CCode (cname = "gtk_printer_accepts_ps")] + public bool get_accepts_ps (); + public unowned Gtk.PrintBackend get_backend (); + 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 unowned string get_icon_name (); + [CCode (cname = "gtk_printer_is_virtual")] + public bool get_is_virtual (); + public int get_job_count (); + public unowned string get_location (); + public unowned string get_name (); + public unowned string get_state_message (); + public bool has_details (); + public bool is_accepting_jobs (); + public bool is_active (); + public bool is_default (); + public bool is_paused (); + public GLib.List list_papers (); + public void request_details (); + [NoAccessorMethod] + public bool accepting_jobs { get; } + [NoAccessorMethod] + public bool accepts_pdf { get; construct; } + [NoAccessorMethod] + public bool accepts_ps { get; construct; } + public Gtk.PrintBackend backend { get; construct; } + public string icon_name { get; } + [NoAccessorMethod] + public bool is_virtual { get; construct; } + public int job_count { get; } + public string location { get; } + public string name { get; construct; } + [NoAccessorMethod] + public bool paused { get; } + public string state_message { get; } + public virtual signal void details_acquired (bool success); + } + [CCode (cheader_filename = "gtk/gtkunixprint.h", cprefix = "GTK_PRINT_CAPABILITY_")] + [Flags] + public enum PrintCapabilities { + PAGE_SET, + COPIES, + COLLATE, + REVERSE, + SCALE, + GENERATE_PDF, + GENERATE_PS, + PREVIEW, + NUMBER_UP, + NUMBER_UP_LAYOUT + } + [CCode (cheader_filename = "gtk/gtkunixprint.h", instance_pos = 1.9)] + public delegate void PrintJobCompleteFunc (Gtk.PrintJob print_job) throws GLib.Error; + [CCode (cheader_filename = "gtk/gtkunixprint.h")] + public delegate bool PrinterFunc (Gtk.Printer printer); + [CCode (cheader_filename = "gtk/gtkunixprint.h")] + public static void enumerate_printers (owned Gtk.PrinterFunc func, bool wait); +} diff --git a/vapi/packages/gtk+-unix-print-4.0/gtk+-unix-print-4.0-custom.vala b/vapi/packages/gtk+-unix-print-4.0/gtk+-unix-print-4.0-custom.vala new file mode 100644 index 000000000..cab400660 --- /dev/null +++ b/vapi/packages/gtk+-unix-print-4.0/gtk+-unix-print-4.0-custom.vala @@ -0,0 +1,7 @@ +namespace Gtk { + [CCode (cheader_filename = "gtk/gtkunixprint.h")] + public abstract class PrintBackend : GLib.Object { + } + [CCode (cheader_filename = "gtk/gtkunixprint.h", instance_pos = 1.9)] + public delegate void PrintJobCompleteFunc (Gtk.PrintJob print_job) throws GLib.Error; +} diff --git a/vapi/packages/gtk+-unix-print-4.0/gtk+-unix-print-4.0.defines b/vapi/packages/gtk+-unix-print-4.0/gtk+-unix-print-4.0.defines new file mode 100644 index 000000000..f73e1233e --- /dev/null +++ b/vapi/packages/gtk+-unix-print-4.0/gtk+-unix-print-4.0.defines @@ -0,0 +1,3 @@ +-DGTK_COMPILATION +-DGSEAL_ENABLE +-D__GNUC__ diff --git a/vapi/packages/gtk+-unix-print-4.0/gtk+-unix-print-4.0.deps b/vapi/packages/gtk+-unix-print-4.0/gtk+-unix-print-4.0.deps new file mode 100644 index 000000000..21462da8e --- /dev/null +++ b/vapi/packages/gtk+-unix-print-4.0/gtk+-unix-print-4.0.deps @@ -0,0 +1,2 @@ +cairo +gtk+-4.0 diff --git a/vapi/packages/gtk+-unix-print-4.0/gtk+-unix-print-4.0.excludes b/vapi/packages/gtk+-unix-print-4.0/gtk+-unix-print-4.0.excludes new file mode 100644 index 000000000..e69de29bb diff --git a/vapi/packages/gtk+-unix-print-4.0/gtk+-unix-print-4.0.files b/vapi/packages/gtk+-unix-print-4.0/gtk+-unix-print-4.0.files new file mode 100644 index 000000000..0319925ca --- /dev/null +++ b/vapi/packages/gtk+-unix-print-4.0/gtk+-unix-print-4.0.files @@ -0,0 +1,2 @@ +include/gtk-4.0/unix-print/gtk +lib/libgtk-4.so diff --git a/vapi/packages/gtk+-unix-print-4.0/gtk+-unix-print-4.0.gi b/vapi/packages/gtk+-unix-print-4.0/gtk+-unix-print-4.0.gi new file mode 100644 index 000000000..d642f171f --- /dev/null +++ b/vapi/packages/gtk+-unix-print-4.0/gtk+-unix-print-4.0.gi @@ -0,0 +1,602 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vapi/packages/gtk+-unix-print-4.0/gtk+-unix-print-4.0.metadata b/vapi/packages/gtk+-unix-print-4.0/gtk+-unix-print-4.0.metadata new file mode 100644 index 000000000..a1e83e3b5 --- /dev/null +++ b/vapi/packages/gtk+-unix-print-4.0/gtk+-unix-print-4.0.metadata @@ -0,0 +1,19 @@ +Gtk cheader_filename="gtk/gtkunixprint.h" gir_namespace="Gtk" gir_version="4.0" cprefix="Gtk" lower_case_cprefix="gtk_" + +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_is_virtual name="get_is_virtual" +gtk_printer_list_papers transfer_ownership="1" type_name="GLib.List" +GtkPrintJobCompleteFunc hidden="1" +gtk_enumerate_printers.func transfer_ownership="1" +gtk_enumerate_printers.data hidden="1" +gtk_enumerate_printers.destroy hidden="1" + +*.dummy* hidden="1" +*_reserved* hidden="1" +*_gtk_recent* hidden="1" +*_autoptr hidden="1" diff --git a/vapi/packages/gtk+-unix-print-4.0/gtk+-unix-print-4.0.namespace b/vapi/packages/gtk+-unix-print-4.0/gtk+-unix-print-4.0.namespace new file mode 100644 index 000000000..0be6e7e3d --- /dev/null +++ b/vapi/packages/gtk+-unix-print-4.0/gtk+-unix-print-4.0.namespace @@ -0,0 +1 @@ +Gtk