[vala] vte-2.90: Add new bindings
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] vte-2.90: Add new bindings
- Date: Thu, 7 Jul 2011 14:25:00 +0000 (UTC)
commit 9be32c24e556ac081644959f081d5327928b062d
Author: Luca Bruno <lucabru src gnome org>
Date: Fri May 27 19:32:33 2011 +0200
vte-2.90: Add new bindings
Fixes bug 627410.
vapi/Makefile.am | 2 +
vapi/metadata/Vte-2.90-custom.vala | 8 ++
vapi/metadata/Vte-2.90.metadata | 10 ++
vapi/vte-2.90.deps | 6 +
vapi/vte-2.90.vapi | 234 ++++++++++++++++++++++++++++++++++++
5 files changed, 260 insertions(+), 0 deletions(-)
---
diff --git a/vapi/Makefile.am b/vapi/Makefile.am
index a7f8f2a..09fd310 100644
--- a/vapi/Makefile.am
+++ b/vapi/Makefile.am
@@ -220,6 +220,8 @@ dist_vapi_DATA = \
libvala PACKAGE_SUFFIX@.vapi \
vte.deps \
vte.vapi \
+ vte-2.90.deps \
+ vte-2.90.vapi \
webkit-1.0.deps \
webkit-1.0.vapi \
x11.vapi \
diff --git a/vapi/metadata/Vte-2.90-custom.vala b/vapi/metadata/Vte-2.90-custom.vala
new file mode 100644
index 0000000..64df246
--- /dev/null
+++ b/vapi/metadata/Vte-2.90-custom.vala
@@ -0,0 +1,8 @@
+namespace Vte {
+ [CCode (cheader_filename = "vte/vte.h")]
+ public const int MAJOR_VERSION;
+ [CCode (cheader_filename = "vte/vte.h")]
+ public const int MICRO_VERSION;
+ [CCode (cheader_filename = "vte/vte.h")]
+ public const int MINOR_VERSION;
+}
diff --git a/vapi/metadata/Vte-2.90.metadata b/vapi/metadata/Vte-2.90.metadata
new file mode 100644
index 0000000..271ae42
--- /dev/null
+++ b/vapi/metadata/Vte-2.90.metadata
@@ -0,0 +1,10 @@
+// Deprecated from start
+Terminal.pty skip
+
+// Report upstream
+Vte cheader_filename="vte/vte.h"
+Pty.new_foreign.fd unowned
+Terminal.get_cursor_position.* out
+Terminal.match_set_cursor.cursor nullable
+TerminalWriteFlags.terminal_write_default name="DEFAULT"
+SelectionFunc.data closure=3
diff --git a/vapi/vte-2.90.deps b/vapi/vte-2.90.deps
new file mode 100644
index 0000000..7ac6f67
--- /dev/null
+++ b/vapi/vte-2.90.deps
@@ -0,0 +1,6 @@
+atk
+gdk-3.0
+gdk-pixbuf-2.0
+gtk+-3.0
+gio-2.0
+pango
diff --git a/vapi/vte-2.90.vapi b/vapi/vte-2.90.vapi
new file mode 100644
index 0000000..2e5ec0e
--- /dev/null
+++ b/vapi/vte-2.90.vapi
@@ -0,0 +1,234 @@
+/* vte-2.90.vapi generated by lt-vapigen, do not modify. */
+
+[CCode (cprefix = "Vte", lower_case_cprefix = "vte_", gir_namespace = "Vte", gir_version = "2.90")]
+namespace Vte {
+ [CCode (type_id = "vte_pty_get_type ()", cheader_filename = "vte/vte.h")]
+ public class Pty : GLib.Object, GLib.Initable {
+ [CCode (has_construct_function = false)]
+ public Pty (Vte.PtyFlags flags) throws GLib.Error;
+ public void child_setup ();
+ public void close ();
+ public static GLib.Quark error_quark ();
+ [CCode (has_construct_function = false)]
+ public Pty.foreign (int fd) throws GLib.Error;
+ public int get_fd ();
+ public bool get_size (out int rows, out int columns) throws GLib.Error;
+ public bool set_size (int rows, int columns) throws GLib.Error;
+ public void set_term (string? emulation);
+ public bool set_utf8 (bool utf8) throws GLib.Error;
+ public int fd { get; construct; }
+ [NoAccessorMethod]
+ public string term { owned get; set; }
+ }
+ [CCode (type_id = "vte_terminal_get_type ()", cheader_filename = "vte/vte.h")]
+ public class Terminal : Gtk.Widget, Atk.Implementor, Gtk.Buildable, Gtk.Scrollable {
+ [CCode (has_construct_function = false)]
+ public Terminal ();
+ public void copy_primary ();
+ public void feed (string data, long length);
+ public void feed_child (string text, long length);
+ public void feed_child_binary (string data, long length);
+ public bool fork_command_full (Vte.PtyFlags pty_flags, string? working_directory, [CCode (array_length = false, array_null_terminated = true)] string[] argv, [CCode (array_length = false, array_null_terminated = true)] string[]? envv, GLib.SpawnFlags spawn_flags, [CCode (delegate_target_pos = 6.5)] GLib.SpawnChildSetupFunc? child_setup, out GLib.Pid child_pid) throws GLib.Error;
+ public bool get_allow_bold ();
+ public bool get_audible_bell ();
+ public long get_char_height ();
+ public long get_char_width ();
+ public int get_child_exit_status ();
+ public long get_column_count ();
+ public Vte.TerminalCursorBlinkMode get_cursor_blink_mode ();
+ public void get_cursor_position (out long column, out long row);
+ public Vte.TerminalCursorShape get_cursor_shape ();
+ public unowned string get_default_emulation ();
+ public unowned string get_emulation ();
+ public unowned string get_encoding ();
+ public unowned Pango.FontDescription get_font ();
+ public bool get_has_selection ();
+ public unowned string get_icon_title ();
+ public bool get_mouse_autohide ();
+ public unowned Vte.Pty get_pty_object ();
+ public long get_row_count ();
+ public unowned string get_status_line ();
+ public bool get_visible_bell ();
+ public unowned string get_window_title ();
+ public void im_append_menuitems (Gtk.MenuShell menushell);
+ public bool is_word_char (unichar c);
+ public int match_add_gregex (GLib.Regex regex, GLib.RegexMatchFlags flags);
+ public string match_check (long column, long row, out int tag);
+ public void match_clear_all ();
+ public void match_remove (int tag);
+ public void match_set_cursor (int tag, Gdk.Cursor? cursor);
+ public void match_set_cursor_name (int tag, string cursor_name);
+ public void match_set_cursor_type (int tag, Gdk.CursorType cursor_type);
+ public void paste_primary ();
+ public Vte.Pty pty_new (Vte.PtyFlags flags) throws GLib.Error;
+ public void reset (bool clear_tabstops, bool clear_history);
+ public bool search_find_next ();
+ public bool search_find_previous ();
+ public unowned GLib.Regex search_get_gregex ();
+ public bool search_get_wrap_around ();
+ public void search_set_gregex (GLib.Regex? regex);
+ public void search_set_wrap_around (bool wrap_around);
+ public void select_all ();
+ public void select_none ();
+ public void set_allow_bold (bool allow_bold);
+ public void set_audible_bell (bool is_audible);
+ public void set_background_image (Gdk.Pixbuf? image);
+ public void set_background_image_file (string path);
+ public void set_background_saturation (double saturation);
+ public void set_background_tint_color (Gdk.Color color);
+ public void set_background_transparent (bool transparent);
+ public void set_backspace_binding (Vte.TerminalEraseBinding binding);
+ public void set_color_background (Gdk.Color background);
+ public void set_color_background_rgba (Gdk.RGBA background);
+ public void set_color_bold (Gdk.Color bold);
+ public void set_color_bold_rgba (Gdk.RGBA? bold);
+ public void set_color_cursor (Gdk.Color? cursor_background);
+ public void set_color_cursor_rgba (Gdk.RGBA? cursor_background);
+ public void set_color_dim (Gdk.Color dim);
+ public void set_color_dim_rgba (Gdk.RGBA? dim);
+ public void set_color_foreground (Gdk.Color foreground);
+ public void set_color_foreground_rgba (Gdk.RGBA foreground);
+ public void set_color_highlight (Gdk.Color? highlight_background);
+ public void set_color_highlight_rgba (Gdk.RGBA? highlight_background);
+ public void set_colors (Gdk.Color? foreground, Gdk.Color? background, [CCode (array_length_type = "glong", array_length_cname = "palette_size", array_length_pos = 3.1)] Gdk.Color[] palette);
+ public void set_colors_rgba (Gdk.RGBA? foreground, Gdk.RGBA? background, [CCode (array_length_type = "gsize", array_length_cname = "palette_size", array_length_pos = 3.1)] Gdk.RGBA[] palette);
+ public void set_cursor_blink_mode (Vte.TerminalCursorBlinkMode mode);
+ public void set_cursor_shape (Vte.TerminalCursorShape shape);
+ public void set_default_colors ();
+ public void set_delete_binding (Vte.TerminalEraseBinding binding);
+ public void set_emulation (string? emulation);
+ public void set_encoding (string? codeset);
+ public void set_font (Pango.FontDescription? font_desc);
+ public void set_font_from_string (string name);
+ public void set_mouse_autohide (bool setting);
+ public void set_opacity (uint16 opacity);
+ public void set_pty_object (Vte.Pty? pty);
+ public void set_scroll_background (bool scroll);
+ public void set_scroll_on_keystroke (bool scroll);
+ public void set_scroll_on_output (bool scroll);
+ public void set_scrollback_lines (long lines);
+ public void set_size (long columns, long rows);
+ public void set_visible_bell (bool is_visible);
+ public void set_word_chars (string spec);
+ public void watch_child (GLib.Pid child_pid);
+ public bool write_contents (GLib.OutputStream stream, Vte.TerminalWriteFlags flags, GLib.Cancellable? cancellable) throws GLib.Error;
+ public bool allow_bold { get; set; }
+ public bool audible_bell { get; set; }
+ [NoAccessorMethod]
+ public string background_image_file { owned get; set; }
+ [NoAccessorMethod]
+ public Gdk.Pixbuf background_image_pixbuf { owned get; set; }
+ [NoAccessorMethod]
+ public double background_opacity { get; set; }
+ [NoAccessorMethod]
+ public double background_saturation { get; set; }
+ [NoAccessorMethod]
+ public Gdk.Color background_tint_color { get; set; }
+ [NoAccessorMethod]
+ public bool background_transparent { get; set; }
+ public string emulation { get; set; }
+ public string encoding { get; set; }
+ [NoAccessorMethod]
+ public Pango.FontDescription font_desc { owned get; set; }
+ public string icon_title { get; }
+ [NoAccessorMethod]
+ public bool pointer_autohide { get; set; }
+ public Vte.Pty pty_object { get; set; }
+ [NoAccessorMethod]
+ public bool scroll_background { get; set; }
+ [NoAccessorMethod]
+ public bool scroll_on_keystroke { get; set; }
+ [NoAccessorMethod]
+ public bool scroll_on_output { get; set; }
+ [NoAccessorMethod]
+ public uint scrollback_lines { get; set; }
+ public bool visible_bell { get; set; }
+ public string window_title { get; }
+ [NoAccessorMethod]
+ public string word_chars { owned get; set; }
+ public virtual signal void beep ();
+ public virtual signal void char_size_changed (uint char_width, uint char_height);
+ public virtual signal void child_exited ();
+ public virtual signal void commit (string text, uint size);
+ public virtual signal void contents_changed ();
+ [HasEmitter]
+ public virtual signal void copy_clipboard ();
+ public virtual signal void cursor_moved ();
+ public virtual signal void decrease_font_size ();
+ public virtual signal void deiconify_window ();
+ public virtual signal void emulation_changed ();
+ public virtual signal void encoding_changed ();
+ public virtual signal void eof ();
+ public virtual signal void icon_title_changed ();
+ public virtual signal void iconify_window ();
+ public virtual signal void increase_font_size ();
+ public virtual signal void lower_window ();
+ public virtual signal void maximize_window ();
+ public virtual signal void move_window (uint x, uint y);
+ [HasEmitter]
+ public virtual signal void paste_clipboard ();
+ public virtual signal void raise_window ();
+ public virtual signal void refresh_window ();
+ public virtual signal void resize_window (uint width, uint height);
+ public virtual signal void restore_window ();
+ public virtual signal void selection_changed ();
+ public virtual signal void status_line_changed ();
+ public virtual signal void text_deleted ();
+ public virtual signal void text_inserted ();
+ public virtual signal void text_modified ();
+ public virtual signal void text_scrolled (int delta);
+ public virtual signal void window_title_changed ();
+ }
+ [CCode (cname = "_VteCharAttributes", type_id = "VTE_TYPE__CHARATTRIBUTES", cheader_filename = "vte/vte.h")]
+ public struct _CharAttributes {
+ }
+ [CCode (cprefix = "VTE_PTY_ERROR_", cheader_filename = "vte/vte.h")]
+ public enum PtyError {
+ PTY_HELPER_FAILED,
+ PTY98_FAILED
+ }
+ [CCode (cprefix = "VTE_PTY_", cheader_filename = "vte/vte.h")]
+ [Flags]
+ public enum PtyFlags {
+ NO_LASTLOG,
+ NO_UTMP,
+ NO_WTMP,
+ NO_HELPER,
+ NO_FALLBACK,
+ DEFAULT
+ }
+ [CCode (cprefix = "VTE_CURSOR_BLINK_", cheader_filename = "vte/vte.h")]
+ public enum TerminalCursorBlinkMode {
+ SYSTEM,
+ ON,
+ OFF
+ }
+ [CCode (cprefix = "VTE_CURSOR_SHAPE_", cheader_filename = "vte/vte.h")]
+ public enum TerminalCursorShape {
+ BLOCK,
+ IBEAM,
+ UNDERLINE
+ }
+ [CCode (cprefix = "VTE_ERASE_", cheader_filename = "vte/vte.h")]
+ public enum TerminalEraseBinding {
+ AUTO,
+ ASCII_BACKSPACE,
+ ASCII_DELETE,
+ DELETE_SEQUENCE,
+ TTY
+ }
+ [CCode (cprefix = "VTE_TERMINAL_WRITE_", cheader_filename = "vte/vte.h")]
+ public enum TerminalWriteFlags {
+ DEFAULT
+ }
+ [CCode (cheader_filename = "vte/vte.h", instance_pos = 3.9)]
+ public delegate bool SelectionFunc (Vte.Terminal terminal, long column, long row);
+ [CCode (cheader_filename = "vte/vte.h")]
+ public const int MAJOR_VERSION;
+ [CCode (cheader_filename = "vte/vte.h")]
+ public const int MICRO_VERSION;
+ [CCode (cheader_filename = "vte/vte.h")]
+ public const int MINOR_VERSION;
+ [CCode (cheader_filename = "vte/vte.h")]
+ public static string get_user_shell ();
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]