gnome-shell/0001-dialog-Wrap-titles.patch
2024-11-12 12:57:44 +01:00

31 lines
1.1 KiB
Diff

From db2ac6188e3fb7ee727e9e71d5416e8f2b75f12b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
Date: Thu, 7 Nov 2024 16:23:48 +0100
Subject: [PATCH] dialog: Wrap titles
Dialogs should not use titles that are too long to fit, but if
they do, wrapping is more appropriate than ellipsizing.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3540>
---
js/ui/dialog.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/js/ui/dialog.js b/js/ui/dialog.js
index 11a27a0207..361fad3cb9 100644
--- a/js/ui/dialog.js
+++ b/js/ui/dialog.js
@@ -173,6 +173,9 @@ export const MessageDialogContent = GObject.registerClass({
this._title = new St.Label({style_class: 'message-dialog-title'});
this._description = new St.Label({style_class: 'message-dialog-description'});
+ this._title.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
+ this._title.clutter_text.line_wrap = true;
+
this._description.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
this._description.clutter_text.line_wrap = true;
--
2.47.0