[vte] Deprecate vte_terminal_get_padding
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vte] Deprecate vte_terminal_get_padding
- Date: Tue, 1 Dec 2009 14:37:00 +0000 (UTC)
commit a34ea6198748e1621b8f148d81b424ca5312f818
Author: Christian Persch <chpe gnome org>
Date: Tue Dec 1 00:21:43 2009 +0100
Deprecate vte_terminal_get_padding
Part of bug #471920.
src/vte.c | 13 ++++++++++++-
src/vte.h | 2 ++
2 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 9b891ac..392f312 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -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)
diff --git a/src/vte.h b/src/vte.h
index 80e9411..5fe448f 100644
--- a/src/vte.h
+++ b/src/vte.h
@@ -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(). */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]