vte r2120 - in trunk: . python
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: vte r2120 - in trunk: . python
- Date: Tue, 14 Oct 2008 23:11:26 +0000 (UTC)
Author: chpe
Date: Tue Oct 14 23:11:26 2008
New Revision: 2120
URL: http://svn.gnome.org/viewvc/vte?rev=2120&view=rev
Log:
Add new API to the python bindings.
Modified:
trunk/ChangeLog
trunk/python/vte.defs
Modified: trunk/python/vte.defs
==============================================================================
--- trunk/python/vte.defs (original)
+++ trunk/python/vte.defs Tue Oct 14 23:11:26 2008
@@ -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
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]