diff options
author | Christian Persch <chpe@src.gnome.org> | 2008-10-14 23:11:26 +0000 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2008-10-14 23:11:26 +0000 |
commit | 0aea533027aafd26a4bf13e1245a719ab2bd9b04 (patch) | |
tree | de94e12a0cffb2b8eeeaeab11816150bfc203e7c /python | |
parent | 6a93d0c685658ea1fab4daef0f999dbc2009e1c3 (diff) |
Add new API to the python bindings.
svn path=/trunk/; revision=2120
Diffstat (limited to 'python')
-rw-r--r-- | python/vte.defs | 45 |
1 files changed, 41 insertions, 4 deletions
diff --git a/python/vte.defs b/python/vte.defs index 5f9300a..5fa028f 100644 --- a/python/vte.defs +++ b/python/vte.defs @@ -43,6 +43,17 @@ ) ) +(define-enum TerminalCursorShape + (in-module "Vte") + (c-name "VteTerminalCursorShape") + (gtype-id "VTE_TYPE_TERMINAL_CURSOR_SHAPE") + (values + '("block" "VTE_CURSOR_SHAPE_BLOCK") + '("ibeam" "VTE_CURSOR_SHAPE_IBEAM") + '("underline" "VTE_CURSOR_SHAPE_UNDERLINE") + ) +) + ;; From vte.h @@ -368,6 +379,21 @@ (return-type "VteTerminalCursorBlinkMode") ) +(define-method set_cursor_shape + (of-object "VteTerminal") + (c-name "vte_terminal_set_cursor_shape") + (return-type "none") + (parameters + '("VteTerminalCursorShape" "shape") + ) +) + +(define-method get_cursor_shape + (of-object "VteTerminal") + (c-name "vte_terminal_get_cursor_shape") + (return-type "VteTerminalCursorShape") +) + (define-method set_scrollback_lines (of-object "VteTerminal") (c-name "vte_terminal_set_scrollback_lines") @@ -695,6 +721,12 @@ ) ) +(define-method get_pty + (of-object "VteTerminal") + (c-name "vte_terminal_get_pty") + (return-type "int") +) + (define-method get_adjustment (of-object "VteTerminal") (c-name "vte_terminal_get_adjustment") @@ -757,10 +789,6 @@ -;; From vteversion.h - - - ;; From vtetypebuiltins.h (define-function vte_terminal_erase_binding_get_type @@ -778,4 +806,13 @@ (return-type "GType") ) +(define-function vte_terminal_cursor_shape_get_type + (c-name "vte_terminal_cursor_shape_get_type") + (return-type "GType") +) + + + +;; From vteversion.h + |