diff options
author | Christian Persch <chpe@gnome.org> | 2009-12-01 00:21:43 +0100 |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2009-12-01 15:35:06 +0100 |
commit | a34ea6198748e1621b8f148d81b424ca5312f818 (patch) | |
tree | 1319f8ea4d4c709d4d78ebeb38859d2560ee7260 /src | |
parent | 25a0fa44c92044b51296be94b9e1680d83270adc (diff) |
Deprecate vte_terminal_get_padding
Part of bug #471920.
Diffstat (limited to 'src')
-rw-r--r-- | src/vte.c | 13 | ||||
-rw-r--r-- | src/vte.h | 2 |
2 files changed, 14 insertions, 1 deletions
@@ -4585,6 +4585,11 @@ vte_terminal_set_inner_border(VteTerminal *terminal) inner_border = default_inner_border; } + _vte_debug_print(VTE_DEBUG_MISC, + "Setting inner-border to { %d, %d, %d, %d }\n", + inner_border.left, inner_border.right, + inner_border.top, inner_border.bottom); + if (memcmp(&inner_border, &pvt->inner_border, sizeof(GtkBorder)) == 0) return; @@ -12173,6 +12178,12 @@ vte_terminal_class_init(VteTerminalClass *klass) G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); + /* Now install the default style */ + gtk_rc_parse_string("style \"vte-default-style\" {\n" + "VteTerminal::inner-border = { 1, 1, 1, 1 }\n" + "}\n" + "class \"VteTerminal\" style : gtk \"vte-default-style\"\n"); + /* Keybindings */ binding_set = gtk_binding_set_by_class(klass); @@ -13484,7 +13495,7 @@ vte_terminal_get_status_line(VteTerminal *terminal) * size. The values returned in @xpad and @ypad are the total padding used in * each direction, and do not need to be doubled. * - * @Deprecated: 0.22: Get the VteTerminal:inner-border style property instead (FIXMEchpe: what about the default value?) + * @Deprecated: 0.22: Get the VteTerminal:inner-border style property instead */ void vte_terminal_get_padding(VteTerminal *terminal, int *xpad, int *ypad) @@ -396,8 +396,10 @@ const char *vte_terminal_get_encoding(VteTerminal *terminal); /* Get the contents of the status line. */ const char *vte_terminal_get_status_line(VteTerminal *terminal); +#ifndef VTE_DISABLE_DEPRECATED /* Get the padding the widget is using. */ void vte_terminal_get_padding(VteTerminal *terminal, int *xpad, int *ypad); +#endif /* Attach an existing PTY master side to the terminal widget. Use * instead of vte_terminal_fork_command(). */ |