![]() |
![]() |
![]() |
VTE Reference Manual | ![]() |
---|
VTE 0.30 uses GTK+ style properties extensively. A number of former VteTerminal object properties, as well as their public accessor functions, have been replaced by style properties.
Table 4.
Former accessor function | Former object property | Style property |
---|---|---|
vte_terminal_get_padding | inner-border | |
vte_terminal_set_font | font-desc | font |
vte_terminal_set_background_tint_color, vte_terminal_set_background_tint_color_rgba | background-pattern | |
vte_terminal_set_allow_bold | allow-bold | allow-bold |
vte_terminal_set_cursor_blink_mode | cursor-blink-mode | |
vte_terminal_set_cursor_shape | cursor-shape | |
vte_terminal_set_scroll_background | scroll-background | scroll-background |
All colours are now taken from
style properties.
This replaces the
vte_terminal_set_colors,
vte_terminal_set_default_color,
vte_terminal_set_color_foreground,
vte_terminal_set_color_background,
vte_terminal_set_color_dim,
vte_terminal_set_color_bold,
vte_terminal_set_color_cursor, and
vte_terminal_set_color_highlight
functions, as well as their GdkRGBA variants
that were added in VTE 0.28.
Note further that in order for the cursor, reverse and selection background
colours to apply instead of the default effect which is to reverse the foreground and
background of the text, you must also set the
cursor-effect
reverse-effect
or selection-effect style property to
VTE_TERMINAL_EFFECT_COLOR
.
All background handling has been replaced by the
background-pattern
style property. This replaces the
vte_terminal_set_background_tint_color,
vte_terminal_set_background_tint_color_rgba,
vte_terminal_set_background_saturation,
vte_terminal_set_background_transparent,
vte_terminal_set_background_image,
vte_terminal_set_background_image_file and
vte_terminal_set_opacity
functions. Note that in order to make the background appear, you also need
to set the alpha component in the palette colours to a value less than 1.0
.
All font handling has been replaced by the font style property. This replaces the vte_terminal_set_font, vte_terminal_set_font_full, vte_terminal_set_font_from_string, and vte_terminal_set_font_from_string_full functions, and the font-desc object property. Note that if you just want to change the font scale, there is a new font-scale object property that you can set instead of changing the font.