[vte] app: Add option to disable bold
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] app: Add option to disable bold
- Date: Sat, 3 Mar 2018 12:02:05 +0000 (UTC)
commit b8faef7af4a1199055b9897d8a51f105e0459f4d
Author: Christian Persch <chpe src gnome org>
Date: Sat Mar 3 13:01:37 2018 +0100
app: Add option to disable bold
src/app/app.cc | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/app/app.cc b/src/app/app.cc
index 008facc..695de98 100644
--- a/src/app/app.cc
+++ b/src/app/app.cc
@@ -45,6 +45,7 @@ public:
gboolean icon_title{false};
gboolean keep{false};
gboolean no_argb_visual{false};
+ gboolean no_bold{false};
gboolean no_bold_is_bright{false};
gboolean no_builtin_dingus{false};
gboolean no_context_menu{false};
@@ -375,6 +376,8 @@ public:
"Live on after the command exits", nullptr },
{ "no-argb-visual", 0, 0, G_OPTION_ARG_NONE, &no_argb_visual,
"Don't use an ARGB visual", nullptr },
+ { "no-bold", 0, 0, G_OPTION_ARG_NONE, &no_bold,
+ "Disable bold", nullptr },
{ "no-bold-is-bright", 'B', 0, G_OPTION_ARG_NONE, &no_bold_is_bright,
"Bold does not brightens colors", nullptr },
{ "no-builtin-dingus", 0, 0, G_OPTION_ARG_NONE, &no_builtin_dingus,
@@ -1825,6 +1828,7 @@ vteapp_window_constructed(GObject *object)
vte_terminal_set_allow_hyperlink(window->terminal, !options.no_hyperlink);
vte_terminal_set_audible_bell(window->terminal, options.audible_bell);
+ vte_terminal_set_allow_bold(window->terminal, !options.no_bold);
vte_terminal_set_bold_is_bright(window->terminal, !options.no_bold_is_bright);
vte_terminal_set_cell_height_scale(window->terminal, options.cell_height_scale);
vte_terminal_set_cell_width_scale(window->terminal, options.cell_width_scale);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]