[vala/wip/gtkunixprint: 1/2] vapi: Add gtk+-unix-print-3.0 bindings



commit e4b900f028319b88b8613f5a454d4da35a660169
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Jan 2 20:48:35 2017 +0100

    vapi: Add gtk+-unix-print-3.0 bindings

 vapi/Makefile.am                                   |    6 +
 vapi/gtk+-unix-print-3.0.deps                      |    2 +
 vapi/gtk+-unix-print-3.0.vapi                      |  157 +++++
 .../gtk+-unix-print-3.0-custom.vala                |    4 +
 .../gtk+-unix-print-3.0.defines                    |    2 +
 .../gtk+-unix-print-3.0/gtk+-unix-print-3.0.deps   |    2 +
 .../gtk+-unix-print-3.0/gtk+-unix-print-3.0.files  |    2 +
 .../gtk+-unix-print-3.0/gtk+-unix-print-3.0.gi     |  596 ++++++++++++++++++++
 .../gtk+-unix-print-3.0.metadata                   |   18 +
 .../gtk+-unix-print-3.0.namespace                  |    1 +
 10 files changed, 790 insertions(+), 0 deletions(-)
---
diff --git a/vapi/Makefile.am b/vapi/Makefile.am
index d030c76..894c629 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-3.0.deps \
+       gtk+-unix-print-3.0.vapi \
        gtkmozembed.deps \
        gtkmozembed.vapi \
        gtksourceview-2.0.deps \
@@ -360,6 +362,7 @@ GIDL_BINDINGS = \
        gstreamer-video-0.10 \
        gtk+-2.0 \
        gtk+-3.0 \
+       gtk+-unix-print-3.0 \
        gtksourceview-2.0 \
        hildon-1 \
        hildon-fm-2 \
@@ -695,6 +698,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-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
+
 gtksourceview-2.0:
        $(GENVAPI) --library $(srcdir)/gtksourceview-2.0 $(PACKAGESDIR)/gtksourceview-2.0/gtksourceview-2.0.gi
 
diff --git a/vapi/gtk+-unix-print-3.0.deps b/vapi/gtk+-unix-print-3.0.deps
new file mode 100644
index 0000000..0364b95
--- /dev/null
+++ b/vapi/gtk+-unix-print-3.0.deps
@@ -0,0 +1,2 @@
+cairo
+gtk+-3.0
diff --git a/vapi/gtk+-unix-print-3.0.vapi b/vapi/gtk+-unix-print-3.0.vapi
new file mode 100644
index 0000000..2bdc34e
--- /dev/null
+++ b/vapi/gtk+-unix-print-3.0.vapi
@@ -0,0 +1,157 @@
+/* gtk+-unix-print-3.0.vapi generated by vapigen, do not modify. */
+
+[CCode (cprefix = "Gtk", gir_namespace = "Gtk", gir_version = "3.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")]
+       [Compact]
+       public class PrintBackend {
+       }
+       [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<Gtk.PageSetup> 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-3.0/gtk+-unix-print-3.0-custom.vala 
b/vapi/packages/gtk+-unix-print-3.0/gtk+-unix-print-3.0-custom.vala
new file mode 100644
index 0000000..54b1f74
--- /dev/null
+++ b/vapi/packages/gtk+-unix-print-3.0/gtk+-unix-print-3.0-custom.vala
@@ -0,0 +1,4 @@
+namespace Gtk {
+       [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-3.0/gtk+-unix-print-3.0.defines 
b/vapi/packages/gtk+-unix-print-3.0/gtk+-unix-print-3.0.defines
new file mode 100644
index 0000000..2043b78
--- /dev/null
+++ b/vapi/packages/gtk+-unix-print-3.0/gtk+-unix-print-3.0.defines
@@ -0,0 +1,2 @@
+-DGTK_COMPILATION
+-DGSEAL_ENABLE
diff --git a/vapi/packages/gtk+-unix-print-3.0/gtk+-unix-print-3.0.deps 
b/vapi/packages/gtk+-unix-print-3.0/gtk+-unix-print-3.0.deps
new file mode 100644
index 0000000..0364b95
--- /dev/null
+++ b/vapi/packages/gtk+-unix-print-3.0/gtk+-unix-print-3.0.deps
@@ -0,0 +1,2 @@
+cairo
+gtk+-3.0
diff --git a/vapi/packages/gtk+-unix-print-3.0/gtk+-unix-print-3.0.excludes 
b/vapi/packages/gtk+-unix-print-3.0/gtk+-unix-print-3.0.excludes
new file mode 100644
index 0000000..e69de29
diff --git a/vapi/packages/gtk+-unix-print-3.0/gtk+-unix-print-3.0.files 
b/vapi/packages/gtk+-unix-print-3.0/gtk+-unix-print-3.0.files
new file mode 100644
index 0000000..b01b370
--- /dev/null
+++ b/vapi/packages/gtk+-unix-print-3.0/gtk+-unix-print-3.0.files
@@ -0,0 +1,2 @@
+include/gtk-3.0/unix-print/gtk
+lib/libgtk-3.so
diff --git a/vapi/packages/gtk+-unix-print-3.0/gtk+-unix-print-3.0.gi 
b/vapi/packages/gtk+-unix-print-3.0/gtk+-unix-print-3.0.gi
new file mode 100644
index 0000000..659360b
--- /dev/null
+++ b/vapi/packages/gtk+-unix-print-3.0/gtk+-unix-print-3.0.gi
@@ -0,0 +1,596 @@
+<?xml version="1.0"?>
+<api version="1.0">
+       <namespace name="Gtk">
+               <function name="enumerate_printers" symbol="gtk_enumerate_printers">
+                       <return-type type="void"/>
+                       <parameters>
+                               <parameter name="func" type="GtkPrinterFunc"/>
+                               <parameter name="data" type="gpointer"/>
+                               <parameter name="destroy" type="GDestroyNotify"/>
+                               <parameter name="wait" type="gboolean"/>
+                       </parameters>
+               </function>
+               <callback name="GtkPrintJobCompleteFunc">
+                       <return-type type="void"/>
+                       <parameters>
+                               <parameter name="print_job" type="GtkPrintJob*"/>
+                               <parameter name="user_data" type="gpointer"/>
+                               <parameter name="error" type="GError*"/>
+                       </parameters>
+               </callback>
+               <callback name="GtkPrinterFunc">
+                       <return-type type="gboolean"/>
+                       <parameters>
+                               <parameter name="printer" type="GtkPrinter*"/>
+                               <parameter name="data" type="gpointer"/>
+                       </parameters>
+               </callback>
+               <struct name="GtkPrintBackend">
+               </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"/>
+                       <member name="GTK_PRINT_CAPABILITY_COLLATE" value="4"/>
+                       <member name="GTK_PRINT_CAPABILITY_REVERSE" value="8"/>
+                       <member name="GTK_PRINT_CAPABILITY_SCALE" value="16"/>
+                       <member name="GTK_PRINT_CAPABILITY_GENERATE_PDF" value="32"/>
+                       <member name="GTK_PRINT_CAPABILITY_GENERATE_PS" value="64"/>
+                       <member name="GTK_PRINT_CAPABILITY_PREVIEW" value="128"/>
+                       <member name="GTK_PRINT_CAPABILITY_NUMBER_UP" value="256"/>
+                       <member name="GTK_PRINT_CAPABILITY_NUMBER_UP_LAYOUT" value="512"/>
+               </flags>
+               <object name="GtkPageSetupUnixDialog" parent="GtkDialog" type-name="GtkPageSetupUnixDialog" 
get-type="gtk_page_setup_unix_dialog_get_type">
+                       <implements>
+                               <interface name="AtkImplementor"/>
+                               <interface name="GtkBuildable"/>
+                       </implements>
+                       <method name="get_page_setup" symbol="gtk_page_setup_unix_dialog_get_page_setup">
+                               <return-type type="GtkPageSetup*"/>
+                               <parameters>
+                                       <parameter name="dialog" type="GtkPageSetupUnixDialog*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_print_settings" 
symbol="gtk_page_setup_unix_dialog_get_print_settings">
+                               <return-type type="GtkPrintSettings*"/>
+                               <parameters>
+                                       <parameter name="dialog" type="GtkPageSetupUnixDialog*"/>
+                               </parameters>
+                       </method>
+                       <constructor name="new" symbol="gtk_page_setup_unix_dialog_new">
+                               <return-type type="GtkWidget*"/>
+                               <parameters>
+                                       <parameter name="title" type="gchar*"/>
+                                       <parameter name="parent" type="GtkWindow*"/>
+                               </parameters>
+                       </constructor>
+                       <method name="set_page_setup" symbol="gtk_page_setup_unix_dialog_set_page_setup">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="dialog" type="GtkPageSetupUnixDialog*"/>
+                                       <parameter name="page_setup" type="GtkPageSetup*"/>
+                               </parameters>
+                       </method>
+                       <method name="set_print_settings" 
symbol="gtk_page_setup_unix_dialog_set_print_settings">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="dialog" type="GtkPageSetupUnixDialog*"/>
+                                       <parameter name="print_settings" type="GtkPrintSettings*"/>
+                               </parameters>
+                       </method>
+               </object>
+               <object name="GtkPrintJob" parent="GObject" type-name="GtkPrintJob" 
get-type="gtk_print_job_get_type">
+                       <method name="get_collate" symbol="gtk_print_job_get_collate">
+                               <return-type type="gboolean"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_n_up" symbol="gtk_print_job_get_n_up">
+                               <return-type type="guint"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_n_up_layout" symbol="gtk_print_job_get_n_up_layout">
+                               <return-type type="GtkNumberUpLayout"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_num_copies" symbol="gtk_print_job_get_num_copies">
+                               <return-type type="gint"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_page_ranges" symbol="gtk_print_job_get_page_ranges">
+                               <return-type type="GtkPageRange*"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                                       <parameter name="n_ranges" type="gint*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_page_set" symbol="gtk_print_job_get_page_set">
+                               <return-type type="GtkPageSet"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_pages" symbol="gtk_print_job_get_pages">
+                               <return-type type="GtkPrintPages"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_printer" symbol="gtk_print_job_get_printer">
+                               <return-type type="GtkPrinter*"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_reverse" symbol="gtk_print_job_get_reverse">
+                               <return-type type="gboolean"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_rotate" symbol="gtk_print_job_get_rotate">
+                               <return-type type="gboolean"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_scale" symbol="gtk_print_job_get_scale">
+                               <return-type type="gdouble"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_settings" symbol="gtk_print_job_get_settings">
+                               <return-type type="GtkPrintSettings*"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_status" symbol="gtk_print_job_get_status">
+                               <return-type type="GtkPrintStatus"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_surface" symbol="gtk_print_job_get_surface">
+                               <return-type type="cairo_surface_t*"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                                       <parameter name="error" type="GError**"/>
+                               </parameters>
+                       </method>
+                       <method name="get_title" symbol="gtk_print_job_get_title">
+                               <return-type type="gchar*"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_track_print_status" symbol="gtk_print_job_get_track_print_status">
+                               <return-type type="gboolean"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                               </parameters>
+                       </method>
+                       <constructor name="new" symbol="gtk_print_job_new">
+                               <return-type type="GtkPrintJob*"/>
+                               <parameters>
+                                       <parameter name="title" type="gchar*"/>
+                                       <parameter name="printer" type="GtkPrinter*"/>
+                                       <parameter name="settings" type="GtkPrintSettings*"/>
+                                       <parameter name="page_setup" type="GtkPageSetup*"/>
+                               </parameters>
+                       </constructor>
+                       <method name="send" symbol="gtk_print_job_send">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                                       <parameter name="callback" type="GtkPrintJobCompleteFunc"/>
+                                       <parameter name="user_data" type="gpointer"/>
+                                       <parameter name="dnotify" type="GDestroyNotify"/>
+                               </parameters>
+                       </method>
+                       <method name="set_collate" symbol="gtk_print_job_set_collate">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                                       <parameter name="collate" type="gboolean"/>
+                               </parameters>
+                       </method>
+                       <method name="set_n_up" symbol="gtk_print_job_set_n_up">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                                       <parameter name="n_up" type="guint"/>
+                               </parameters>
+                       </method>
+                       <method name="set_n_up_layout" symbol="gtk_print_job_set_n_up_layout">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                                       <parameter name="layout" type="GtkNumberUpLayout"/>
+                               </parameters>
+                       </method>
+                       <method name="set_num_copies" symbol="gtk_print_job_set_num_copies">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                                       <parameter name="num_copies" type="gint"/>
+                               </parameters>
+                       </method>
+                       <method name="set_page_ranges" symbol="gtk_print_job_set_page_ranges">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                                       <parameter name="ranges" type="GtkPageRange*"/>
+                                       <parameter name="n_ranges" type="gint"/>
+                               </parameters>
+                       </method>
+                       <method name="set_page_set" symbol="gtk_print_job_set_page_set">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                                       <parameter name="page_set" type="GtkPageSet"/>
+                               </parameters>
+                       </method>
+                       <method name="set_pages" symbol="gtk_print_job_set_pages">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                                       <parameter name="pages" type="GtkPrintPages"/>
+                               </parameters>
+                       </method>
+                       <method name="set_reverse" symbol="gtk_print_job_set_reverse">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                                       <parameter name="reverse" type="gboolean"/>
+                               </parameters>
+                       </method>
+                       <method name="set_rotate" symbol="gtk_print_job_set_rotate">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                                       <parameter name="rotate" type="gboolean"/>
+                               </parameters>
+                       </method>
+                       <method name="set_scale" symbol="gtk_print_job_set_scale">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                                       <parameter name="scale" type="gdouble"/>
+                               </parameters>
+                       </method>
+                       <method name="set_source_fd" symbol="gtk_print_job_set_source_fd">
+                               <return-type type="gboolean"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                                       <parameter name="fd" type="int"/>
+                                       <parameter name="error" type="GError**"/>
+                               </parameters>
+                       </method>
+                       <method name="set_source_file" symbol="gtk_print_job_set_source_file">
+                               <return-type type="gboolean"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                                       <parameter name="filename" type="gchar*"/>
+                                       <parameter name="error" type="GError**"/>
+                               </parameters>
+                       </method>
+                       <method name="set_track_print_status" symbol="gtk_print_job_set_track_print_status">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                                       <parameter name="track_status" type="gboolean"/>
+                               </parameters>
+                       </method>
+                       <property name="page-setup" type="GtkPageSetup*" readable="1" writable="1" 
construct="0" construct-only="1"/>
+                       <property name="printer" type="GtkPrinter*" readable="1" writable="1" construct="0" 
construct-only="1"/>
+                       <property name="settings" type="GtkPrintSettings*" readable="1" writable="1" 
construct="0" construct-only="1"/>
+                       <property name="title" type="char*" readable="1" writable="1" construct="0" 
construct-only="1"/>
+                       <property name="track-print-status" type="gboolean" readable="1" writable="1" 
construct="0" construct-only="0"/>
+                       <signal name="status-changed" when="LAST">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="job" type="GtkPrintJob*"/>
+                               </parameters>
+                       </signal>
+               </object>
+               <object name="GtkPrintUnixDialog" parent="GtkDialog" type-name="GtkPrintUnixDialog" 
get-type="gtk_print_unix_dialog_get_type">
+                       <implements>
+                               <interface name="AtkImplementor"/>
+                               <interface name="GtkBuildable"/>
+                       </implements>
+                       <method name="add_custom_tab" symbol="gtk_print_unix_dialog_add_custom_tab">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="dialog" type="GtkPrintUnixDialog*"/>
+                                       <parameter name="child" type="GtkWidget*"/>
+                                       <parameter name="tab_label" type="GtkWidget*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_current_page" symbol="gtk_print_unix_dialog_get_current_page">
+                               <return-type type="gint"/>
+                               <parameters>
+                                       <parameter name="dialog" type="GtkPrintUnixDialog*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_embed_page_setup" 
symbol="gtk_print_unix_dialog_get_embed_page_setup">
+                               <return-type type="gboolean"/>
+                               <parameters>
+                                       <parameter name="dialog" type="GtkPrintUnixDialog*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_has_selection" symbol="gtk_print_unix_dialog_get_has_selection">
+                               <return-type type="gboolean"/>
+                               <parameters>
+                                       <parameter name="dialog" type="GtkPrintUnixDialog*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_manual_capabilities" 
symbol="gtk_print_unix_dialog_get_manual_capabilities">
+                               <return-type type="GtkPrintCapabilities"/>
+                               <parameters>
+                                       <parameter name="dialog" type="GtkPrintUnixDialog*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_page_setup" symbol="gtk_print_unix_dialog_get_page_setup">
+                               <return-type type="GtkPageSetup*"/>
+                               <parameters>
+                                       <parameter name="dialog" type="GtkPrintUnixDialog*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_page_setup_set" symbol="gtk_print_unix_dialog_get_page_setup_set">
+                               <return-type type="gboolean"/>
+                               <parameters>
+                                       <parameter name="dialog" type="GtkPrintUnixDialog*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_selected_printer" 
symbol="gtk_print_unix_dialog_get_selected_printer">
+                               <return-type type="GtkPrinter*"/>
+                               <parameters>
+                                       <parameter name="dialog" type="GtkPrintUnixDialog*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_settings" symbol="gtk_print_unix_dialog_get_settings">
+                               <return-type type="GtkPrintSettings*"/>
+                               <parameters>
+                                       <parameter name="dialog" type="GtkPrintUnixDialog*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_support_selection" 
symbol="gtk_print_unix_dialog_get_support_selection">
+                               <return-type type="gboolean"/>
+                               <parameters>
+                                       <parameter name="dialog" type="GtkPrintUnixDialog*"/>
+                               </parameters>
+                       </method>
+                       <constructor name="new" symbol="gtk_print_unix_dialog_new">
+                               <return-type type="GtkWidget*"/>
+                               <parameters>
+                                       <parameter name="title" type="gchar*"/>
+                                       <parameter name="parent" type="GtkWindow*"/>
+                               </parameters>
+                       </constructor>
+                       <method name="set_current_page" symbol="gtk_print_unix_dialog_set_current_page">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="dialog" type="GtkPrintUnixDialog*"/>
+                                       <parameter name="current_page" type="gint"/>
+                               </parameters>
+                       </method>
+                       <method name="set_embed_page_setup" 
symbol="gtk_print_unix_dialog_set_embed_page_setup">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="dialog" type="GtkPrintUnixDialog*"/>
+                                       <parameter name="embed" type="gboolean"/>
+                               </parameters>
+                       </method>
+                       <method name="set_has_selection" symbol="gtk_print_unix_dialog_set_has_selection">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="dialog" type="GtkPrintUnixDialog*"/>
+                                       <parameter name="has_selection" type="gboolean"/>
+                               </parameters>
+                       </method>
+                       <method name="set_manual_capabilities" 
symbol="gtk_print_unix_dialog_set_manual_capabilities">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="dialog" type="GtkPrintUnixDialog*"/>
+                                       <parameter name="capabilities" type="GtkPrintCapabilities"/>
+                               </parameters>
+                       </method>
+                       <method name="set_page_setup" symbol="gtk_print_unix_dialog_set_page_setup">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="dialog" type="GtkPrintUnixDialog*"/>
+                                       <parameter name="page_setup" type="GtkPageSetup*"/>
+                               </parameters>
+                       </method>
+                       <method name="set_settings" symbol="gtk_print_unix_dialog_set_settings">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="dialog" type="GtkPrintUnixDialog*"/>
+                                       <parameter name="settings" type="GtkPrintSettings*"/>
+                               </parameters>
+                       </method>
+                       <method name="set_support_selection" 
symbol="gtk_print_unix_dialog_set_support_selection">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="dialog" type="GtkPrintUnixDialog*"/>
+                                       <parameter name="support_selection" type="gboolean"/>
+                               </parameters>
+                       </method>
+                       <property name="current-page" type="gint" readable="1" writable="1" construct="0" 
construct-only="0"/>
+                       <property name="embed-page-setup" type="gboolean" readable="1" writable="1" 
construct="0" construct-only="0"/>
+                       <property name="has-selection" type="gboolean" readable="1" writable="1" 
construct="0" construct-only="0"/>
+                       <property name="manual-capabilities" type="GtkPrintCapabilities" readable="1" 
writable="1" construct="0" construct-only="0"/>
+                       <property name="page-setup" type="GtkPageSetup*" readable="1" writable="1" 
construct="0" construct-only="0"/>
+                       <property name="print-settings" type="GtkPrintSettings*" readable="1" writable="1" 
construct="0" construct-only="0"/>
+                       <property name="selected-printer" type="GtkPrinter*" readable="1" writable="0" 
construct="0" construct-only="0"/>
+                       <property name="support-selection" type="gboolean" readable="1" writable="1" 
construct="0" construct-only="0"/>
+               </object>
+               <object name="GtkPrinter" parent="GObject" type-name="GtkPrinter" 
get-type="gtk_printer_get_type">
+                       <method name="accepts_pdf" symbol="gtk_printer_accepts_pdf">
+                               <return-type type="gboolean"/>
+                               <parameters>
+                                       <parameter name="printer" type="GtkPrinter*"/>
+                               </parameters>
+                       </method>
+                       <method name="accepts_ps" symbol="gtk_printer_accepts_ps">
+                               <return-type type="gboolean"/>
+                               <parameters>
+                                       <parameter name="printer" type="GtkPrinter*"/>
+                               </parameters>
+                       </method>
+                       <method name="compare" symbol="gtk_printer_compare">
+                               <return-type type="gint"/>
+                               <parameters>
+                                       <parameter name="a" type="GtkPrinter*"/>
+                                       <parameter name="b" type="GtkPrinter*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_backend" symbol="gtk_printer_get_backend">
+                               <return-type type="GtkPrintBackend*"/>
+                               <parameters>
+                                       <parameter name="printer" type="GtkPrinter*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_capabilities" symbol="gtk_printer_get_capabilities">
+                               <return-type type="GtkPrintCapabilities"/>
+                               <parameters>
+                                       <parameter name="printer" type="GtkPrinter*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_default_page_size" symbol="gtk_printer_get_default_page_size">
+                               <return-type type="GtkPageSetup*"/>
+                               <parameters>
+                                       <parameter name="printer" type="GtkPrinter*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_description" symbol="gtk_printer_get_description">
+                               <return-type type="gchar*"/>
+                               <parameters>
+                                       <parameter name="printer" type="GtkPrinter*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_hard_margins" symbol="gtk_printer_get_hard_margins">
+                               <return-type type="gboolean"/>
+                               <parameters>
+                                       <parameter name="printer" type="GtkPrinter*"/>
+                                       <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>
+                                       <parameter name="printer" type="GtkPrinter*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_job_count" symbol="gtk_printer_get_job_count">
+                               <return-type type="gint"/>
+                               <parameters>
+                                       <parameter name="printer" type="GtkPrinter*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_location" symbol="gtk_printer_get_location">
+                               <return-type type="gchar*"/>
+                               <parameters>
+                                       <parameter name="printer" type="GtkPrinter*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_name" symbol="gtk_printer_get_name">
+                               <return-type type="gchar*"/>
+                               <parameters>
+                                       <parameter name="printer" type="GtkPrinter*"/>
+                               </parameters>
+                       </method>
+                       <method name="get_state_message" symbol="gtk_printer_get_state_message">
+                               <return-type type="gchar*"/>
+                               <parameters>
+                                       <parameter name="printer" type="GtkPrinter*"/>
+                               </parameters>
+                       </method>
+                       <method name="has_details" symbol="gtk_printer_has_details">
+                               <return-type type="gboolean"/>
+                               <parameters>
+                                       <parameter name="printer" type="GtkPrinter*"/>
+                               </parameters>
+                       </method>
+                       <method name="is_accepting_jobs" symbol="gtk_printer_is_accepting_jobs">
+                               <return-type type="gboolean"/>
+                               <parameters>
+                                       <parameter name="printer" type="GtkPrinter*"/>
+                               </parameters>
+                       </method>
+                       <method name="is_active" symbol="gtk_printer_is_active">
+                               <return-type type="gboolean"/>
+                               <parameters>
+                                       <parameter name="printer" type="GtkPrinter*"/>
+                               </parameters>
+                       </method>
+                       <method name="is_default" symbol="gtk_printer_is_default">
+                               <return-type type="gboolean"/>
+                               <parameters>
+                                       <parameter name="printer" type="GtkPrinter*"/>
+                               </parameters>
+                       </method>
+                       <method name="is_paused" symbol="gtk_printer_is_paused">
+                               <return-type type="gboolean"/>
+                               <parameters>
+                                       <parameter name="printer" type="GtkPrinter*"/>
+                               </parameters>
+                       </method>
+                       <method name="is_virtual" symbol="gtk_printer_is_virtual">
+                               <return-type type="gboolean"/>
+                               <parameters>
+                                       <parameter name="printer" type="GtkPrinter*"/>
+                               </parameters>
+                       </method>
+                       <method name="list_papers" symbol="gtk_printer_list_papers">
+                               <return-type type="GList*"/>
+                               <parameters>
+                                       <parameter name="printer" type="GtkPrinter*"/>
+                               </parameters>
+                       </method>
+                       <constructor name="new" symbol="gtk_printer_new">
+                               <return-type type="GtkPrinter*"/>
+                               <parameters>
+                                       <parameter name="name" type="gchar*"/>
+                                       <parameter name="backend" type="GtkPrintBackend*"/>
+                                       <parameter name="virtual_" type="gboolean"/>
+                               </parameters>
+                       </constructor>
+                       <method name="request_details" symbol="gtk_printer_request_details">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="printer" type="GtkPrinter*"/>
+                               </parameters>
+                       </method>
+                       <property name="accepting-jobs" type="gboolean" readable="1" writable="0" 
construct="0" construct-only="0"/>
+                       <property name="accepts-pdf" type="gboolean" readable="1" writable="1" construct="0" 
construct-only="1"/>
+                       <property name="accepts-ps" type="gboolean" readable="1" writable="1" construct="0" 
construct-only="1"/>
+                       <property name="backend" type="GtkPrintBackend*" readable="1" writable="1" 
construct="0" construct-only="1"/>
+                       <property name="icon-name" type="char*" readable="1" writable="0" construct="0" 
construct-only="0"/>
+                       <property name="is-virtual" type="gboolean" readable="1" writable="1" construct="0" 
construct-only="1"/>
+                       <property name="job-count" type="gint" readable="1" writable="0" construct="0" 
construct-only="0"/>
+                       <property name="location" type="char*" readable="1" writable="0" construct="0" 
construct-only="0"/>
+                       <property name="name" type="char*" readable="1" writable="1" construct="0" 
construct-only="1"/>
+                       <property name="paused" type="gboolean" readable="1" writable="0" construct="0" 
construct-only="0"/>
+                       <property name="state-message" type="char*" readable="1" writable="0" construct="0" 
construct-only="0"/>
+                       <signal name="details-acquired" when="LAST">
+                               <return-type type="void"/>
+                               <parameters>
+                                       <parameter name="printer" type="GtkPrinter*"/>
+                                       <parameter name="success" type="gboolean"/>
+                               </parameters>
+                       </signal>
+               </object>
+       </namespace>
+</api>
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
new file mode 100644
index 0000000..b9f558d
--- /dev/null
+++ b/vapi/packages/gtk+-unix-print-3.0/gtk+-unix-print-3.0.metadata
@@ -0,0 +1,18 @@
+Gtk cheader_filename="gtk/gtkunixprint.h" gir_namespace="Gtk" gir_version="3.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<Gtk.PageSetup>"
+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-3.0/gtk+-unix-print-3.0.namespace 
b/vapi/packages/gtk+-unix-print-3.0/gtk+-unix-print-3.0.namespace
new file mode 100644
index 0000000..0be6e7e
--- /dev/null
+++ b/vapi/packages/gtk+-unix-print-3.0/gtk+-unix-print-3.0.namespace
@@ -0,0 +1 @@
+Gtk


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