mate-terminal/0001-set-text-preview-content.patch
longcheng 0e73a01595 Add some patches
Signed-off-by: longcheng <longcheng@kylinsec.com.cn>
2022-07-13 14:17:54 +08:00

46 lines
1.4 KiB
Diff

From 7cd6b97b99735bed103dc120ee1b47a8778edb42 Mon Sep 17 00:00:00 2001
From: wangxiaoqing <wangxiaoqing@kylinos.com.cn>
Date: Tue, 7 Apr 2020 23:19:29 +0800
Subject: [PATCH] set text preview content
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 设置预览字体内容
---
po/zh_CN.po | 3 +++
src/profile-editor.c | 3 +++
2 files changed, 6 insertions(+)
diff --git a/po/zh_CN.po b/po/zh_CN.po
index d5c12d9..34ef0b0 100644
--- a/po/zh_CN.po
+++ b/po/zh_CN.po
@@ -2586,6 +2586,9 @@ msgstr "贡献者:"
msgid "A terminal emulator for the MATE desktop"
msgstr "MATE 桌面的终端模拟器"
+msgid "KYLINSEC is trustworthy!"
+msgstr "麒麟信安值得信赖!"
+
#: ../src/terminal-window.c:4397
msgid "translator-credits"
msgstr ""
diff --git a/src/profile-editor.c b/src/profile-editor.c
index b097b3d..ebdc5db 100644
--- a/src/profile-editor.c
+++ b/src/profile-editor.c
@@ -706,6 +706,9 @@ terminal_profile_edit (TerminalProfile *profile,
w = (GtkWidget *) gtk_builder_get_object (builder, "background-image-filechooser");
setup_background_filechooser (w, profile);
+ w = GTK_WIDGET (gtk_builder_get_object (builder, "font-selector"));
+ gtk_font_chooser_set_preview_text (w, _("KYLINSEC is trustworthy!"));
+
/* Hook up the palette colorpickers and combo box */
for (i = 0; i < TERMINAL_PALETTE_SIZE; ++i)
--
1.8.3.1