From: Rico Tzschichholz Date: Tue, 3 Jan 2017 13:55:51 +0000 (+0100) Subject: vapi: Add gtk+-unix-print-2.0 bindings X-Git-Tag: 0.35.3~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4bd698856a262df6540488077f0cd270a10788a;p=thirdparty%2Fvala.git vapi: Add gtk+-unix-print-2.0 bindings --- diff --git a/vapi/Makefile.am b/vapi/Makefile.am index 894c629da..17fdd9a06 100644 --- a/vapi/Makefile.am +++ b/vapi/Makefile.am @@ -170,6 +170,8 @@ dist_vapi_DATA = \ gtk+-3.0.vapi \ gtk+-4.0.deps \ gtk+-4.0.vapi \ + gtk+-unix-print-2.0.deps \ + gtk+-unix-print-2.0.vapi \ gtk+-unix-print-3.0.deps \ gtk+-unix-print-3.0.vapi \ gtkmozembed.deps \ @@ -362,6 +364,7 @@ GIDL_BINDINGS = \ gstreamer-video-0.10 \ gtk+-2.0 \ gtk+-3.0 \ + gtk+-unix-print-2.0 \ gtk+-unix-print-3.0 \ gtksourceview-2.0 \ hildon-1 \ @@ -698,6 +701,9 @@ gtk+-4.0: $(METADATADIR)/Gsk-4.0-custom.vala $(GIRDIR)/Gsk-4.0.gir \ $(METADATADIR)/Gtk-4.0-custom.vala $(GIRDIR)/Gtk-4.0.gir +gtk+-unix-print-2.0: + $(GENVAPI) --library $(srcdir)/gtk+-unix-print-2.0 $(PACKAGESDIR)/gtk+-unix-print-2.0/gtk+-unix-print-2.0-custom.vala $(PACKAGESDIR)/gtk+-unix-print-2.0/gtk+-unix-print-2.0.gi + 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 diff --git a/vapi/gtk+-unix-print-2.0.deps b/vapi/gtk+-unix-print-2.0.deps new file mode 100644 index 000000000..9e4a9da04 --- /dev/null +++ b/vapi/gtk+-unix-print-2.0.deps @@ -0,0 +1,2 @@ +cairo +gtk+-2.0 diff --git a/vapi/gtk+-unix-print-2.0.vapi b/vapi/gtk+-unix-print-2.0.vapi new file mode 100644 index 000000000..ad4da0d09 --- /dev/null +++ b/vapi/gtk+-unix-print-2.0.vapi @@ -0,0 +1,136 @@ +/* gtk+-unix-print-2.0.vapi generated by vapigen, do not modify. */ + +[CCode (cprefix = "Gtk", gir_namespace = "Gtk", gir_version = "2.0", lower_case_cprefix = "gtk_")] +[Version (replacement = "gtk+-unix-print-3.0")] +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 unowned Gtk.Printer get_printer (); + 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 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-2.0/gtk+-unix-print-2.0-custom.vala b/vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.0-custom.vala new file mode 100644 index 000000000..cab400660 --- /dev/null +++ b/vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.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-2.0/gtk+-unix-print-2.0.defines b/vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.0.defines new file mode 100644 index 000000000..2043b7846 --- /dev/null +++ b/vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.0.defines @@ -0,0 +1,2 @@ +-DGTK_COMPILATION +-DGSEAL_ENABLE diff --git a/vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.0.deps b/vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.0.deps new file mode 100644 index 000000000..9e4a9da04 --- /dev/null +++ b/vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.0.deps @@ -0,0 +1,2 @@ +cairo +gtk+-2.0 diff --git a/vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.0.excludes b/vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.0.excludes new file mode 100644 index 000000000..e69de29bb diff --git a/vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.0.files b/vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.0.files new file mode 100644 index 000000000..e3020dc45 --- /dev/null +++ b/vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.0.files @@ -0,0 +1,2 @@ +include/gtk-unix-print-2.0/gtk +lib/libgtk-x11-2.0.so diff --git a/vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.0.gi b/vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.0.gi new file mode 100644 index 000000000..70a20014d --- /dev/null +++ b/vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.0.gi @@ -0,0 +1,456 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 000000000..b7e80bc3d --- /dev/null +++ b/vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.0.metadata @@ -0,0 +1,18 @@ +Gtk cheader_filename="gtk/gtkunixprint.h" gir_namespace="Gtk" gir_version="2.0" cprefix="Gtk" lower_case_cprefix="gtk_" replacement="gtk+-unix-print-3.0" + +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" diff --git a/vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.0.namespace b/vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.0.namespace new file mode 100644 index 000000000..0be6e7e3d --- /dev/null +++ b/vapi/packages/gtk+-unix-print-2.0/gtk+-unix-print-2.0.namespace @@ -0,0 +1 @@ +Gtk