[gnome-shell/wip/carlosg/pad-osd-fixes: 2/12] padOsd: Disable ellipsizing in title label
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/pad-osd-fixes: 2/12] padOsd: Disable ellipsizing in title label
- Date: Fri, 29 May 2020 15:36:51 +0000 (UTC)
commit 0d88db21ceb338e555ddfbc774edd8fc8420b3b6
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu May 28 13:36:25 2020 +0200
padOsd: Disable ellipsizing in title label
We make the label text large and let it ellipsize. It ends up doing
so instead of allowing the label to expand. This title is important
and we don't want it to be ellipsized, so ensure that won't happen.
Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2845
js/ui/padOsd.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/padOsd.js b/js/ui/padOsd.js
index ddeb28e7d0..d898c3560c 100644
--- a/js/ui/padOsd.js
+++ b/js/ui/padOsd.js
@@ -2,7 +2,7 @@
/* exported PadOsd, PadOsdService */
const { Atk, Clutter, GDesktopEnums, Gio,
- GLib, GObject, Gtk, Meta, Rsvg, St } = imports.gi;
+ GLib, GObject, Gtk, Meta, Pango, Rsvg, St } = imports.gi;
const Signals = imports.signals;
const Main = imports.ui.main;
@@ -693,6 +693,7 @@ var PadOsd = GObject.registerClass({
this._titleLabel = new St.Label({ style: 'font-side: larger; font-weight: bold;',
x_align: Clutter.ActorAlign.CENTER });
+ this._titleLabel.clutter_text.set_ellipsize(Pango.EllipsizeMode.NONE);
this._titleLabel.clutter_text.set_text(padDevice.get_device_name());
labelBox.add_actor(this._titleLabel);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]