[vte/wip/termprops: 42/42] widget: Add fedora termprops
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/termprops: 42/42] widget: Add fedora termprops
- Date: Tue, 1 Mar 2022 22:40:40 +0000 (UTC)
commit 622ebb95ecc8ad1fab146efc2b3595684c42eaff
Author: Christian Persch <chpe src gnome org>
Date: Tue Mar 1 23:38:31 2022 +0100
widget: Add fedora termprops
NOT FOR UPSTREAM.
src/vte/vteterminal.h | 9 +++++++++
src/vtegtk.cc | 16 ++++++++++++++++
2 files changed, 25 insertions(+)
---
diff --git a/src/vte/vteterminal.h b/src/vte/vteterminal.h
index bca0b4e8..d9c390dc 100644
--- a/src/vte/vteterminal.h
+++ b/src/vte/vteterminal.h
@@ -643,4 +643,13 @@ void vte_terminal_reset_termprop(VteTerminal* terminal,
G_DEFINE_AUTOPTR_CLEANUP_FUNC(VteTerminal, g_object_unref)
+/* BEGIN distribution patches */
+
+#define VTE_TERMPROP_FEDORA_CONTAINER_NAME "fedora.container.name" /* string */
+#define VTE_TERMPROP_FEDORA_CONTAINER_RUNTIME "fedora.container.runtime" /* string */
+#define VTE_TERMPROP_FEDORA_SHELL_PREEXEC "fedora.shell.preexec" /* valueless */
+#define VTE_TERMPROP_FEDORA_SHELL_PRECMD "fedora.shell.precmd" /* valueless */
+
+/* END distribution patches */
+
G_END_DECLS
diff --git a/src/vtegtk.cc b/src/vtegtk.cc
index b6517964..3ac7f059 100644
--- a/src/vtegtk.cc
+++ b/src/vtegtk.cc
@@ -2565,6 +2565,22 @@ vte_terminal_class_init(VteTerminalClass *klass)
#endif
/* Install termprops */
+ _vte_terminal_class_install_termprop(klass,
+ I_(VTE_TERMPROP_FEDORA_CONTAINER_NAME),
+ VTE_PROPERTY_STRING,
+ VTE_PROPERTY_FLAG_NONE);
+ _vte_terminal_class_install_termprop(klass,
+ I_(VTE_TERMPROP_FEDORA_CONTAINER_RUNTIME),
+ VTE_PROPERTY_STRING,
+ VTE_PROPERTY_FLAG_NONE);
+ _vte_terminal_class_install_termprop(klass,
+ I_(VTE_TERMPROP_FEDORA_SHELL_PRECMD),
+ VTE_PROPERTY_VALUELESS,
+ VTE_PROPERTY_FLAG_NONE);
+ _vte_terminal_class_install_termprop(klass,
+ I_(VTE_TERMPROP_FEDORA_SHELL_PREEXEC),
+ VTE_PROPERTY_VALUELESS,
+ VTE_PROPERTY_FLAG_NONE);
}
/* public API */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]