Commit 8eca214b authored by Nalin Dahyabhai's avatar Nalin Dahyabhai
Browse files

add, for the sake of bindings.

* src/vte.c(vte_terminal_anti_alias_get_type): add, for the sake of bindings.
parent e393cfc5
2004-04-19 nalin
* src/vte.c(vte_terminal_anti_alias_get_type): add, for the sake of
bindings.
2004-04-19 nalin
* src/vte.c(vte_terminal_key_press): call GtkWidget's key_press_event
callback for keys, in case GtkWidget has pre-programmed behavior for
......
......@@ -21,6 +21,17 @@
)
)
(define-enum TerminalAntiAlias
(in-module "Vte")
(c-name "VteTerminalAntiAlias")
(gtype-id "VTE_TYPE_TERMINAL_ANTI_ALIAS")
(values
'("use-default" "VTE_ANTI_ALIAS_USE_DEFAULT")
'("force-enable" "VTE_ANTI_ALIAS_FORCE_ENABLE")
'("force-disable" "VTE_ANTI_ALIAS_FORCE_DISABLE")
)
)
;; From ../src/vte.h
......@@ -332,6 +343,16 @@
)
)
(define-method set_font_full
(of-object "VteTerminal")
(c-name "vte_terminal_set_font_full")
(return-type "none")
(parameters
'("const-PangoFontDescription*" "font_desc")
'("VteTerminalAntiAlias" "anti_alias")
)
)
(define-method set_font_from_string
(of-object "VteTerminal")
(c-name "vte_terminal_set_font_from_string")
......@@ -341,6 +362,16 @@
)
)
(define-method set_font_from_string_full
(of-object "VteTerminal")
(c-name "vte_terminal_set_font_from_string_full")
(return-type "none")
(parameters
'("const-char*" "name")
'("VteTerminalAntiAlias" "anti_alias")
)
)
(define-method get_font
(of-object "VteTerminal")
(c-name "vte_terminal_get_font")
......@@ -440,6 +471,7 @@
(c-name "vte_terminal_get_text")
(return-type "char*")
(parameters
'("gboolean(*" "is_selected")
)
)
......@@ -452,6 +484,7 @@
'("glong" "start_col")
'("glong" "end_row")
'("glong" "end_col")
'("gboolean(*" "is_selected")
)
)
......
......@@ -29,6 +29,7 @@
extern void pyvte_register_classes(PyObject * d);
extern PyMethodDef pyvte_functions[];
extern DL_EXPORT(void) initvte(void);
extern PyTypeObject PyVteTerminal_Type;
DL_EXPORT(void)
init_vte(void)
......
......@@ -14328,6 +14328,23 @@ vte_terminal_erase_binding_get_type(void)
return terminal_erase_binding_type;
}
GtkType
vte_terminal_anti_alias_get_type(void)
{
static GtkType terminal_anti_alias_type = 0;
static GEnumValue values[] = {
{VTE_ANTI_ALIAS_USE_DEFAULT, "VTE_ANTI_ALIAS_USE_DEFAULT", "use-default"},
{VTE_ANTI_ALIAS_FORCE_ENABLE, "VTE_ANTI_ALIAS_FORCE_ENABLE", "force-enable"},
{VTE_ANTI_ALIAS_FORCE_DISABLE, "VTE_ANTI_ALIAS_FORCE_DISABLE", "force-disable"},
};
if (terminal_anti_alias_type == 0) {
terminal_anti_alias_type =
g_enum_register_static("VteTerminalAntiAlias",
values);
}
return terminal_anti_alias_type;
}
GtkType
vte_terminal_get_type(void)
{
......
......@@ -158,7 +158,7 @@ typedef enum {
typedef enum {
VTE_ANTI_ALIAS_USE_DEFAULT,
VTE_ANTI_ALIAS_FORCE_ENABLE,
VTE_ANTI_ALIAS_FORCE_DISABLE,
VTE_ANTI_ALIAS_FORCE_DISABLE
} VteTerminalAntiAlias;
/* The structure we return as the supplemental attributes for strings. */
......@@ -196,6 +196,9 @@ GtkType vte_terminal_erase_binding_get_type(void);
#define VTE_TYPE_TERMINAL_ERASE_BINDING (vte_terminal_erase_binding_get_type())
#define VTE_IS_TERMINAL_ERASE_BINDING(obj) GTK_CHECK_TYPE((obj),\
VTE_TYPE_TERMINAL_ERASE_BINDING)
#define VTE_TYPE_TERMINAL_ANTI_ALIAS (vte_terminal_anti_alias_get_type())
#define VTE_IS_TERMINAL_ANTI_ALIAS(obj) GTK_CHECK_TYPE((obj),\
VTE_TYPE_TERMINAL_ANTI_ALIAS)
/* You can get by with just these two functions. */
GtkWidget *vte_terminal_new(void);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment